use file for gpu functions