set gpu flags correctly before compiling gpu code