Before this change, the debug statements in polly_initDevice would all be
skipped, as debug-mode would only be enabled _after_ they have already been run.
llvm-svn: 276621
}
void polly_initDevice(PollyGPUContext **Context, PollyGPUDevice **Device) {
+ DebugMode = getenv("POLLY_DEBUG") != 0;
+
dump_function();
int Major = 0, Minor = 0, DeviceID = 0;
exit(-1);
}
CuCtxCreateFcnPtr(&((*Context)->Cuda), 0, (*Device)->Cuda);
-
- DebugMode = getenv("POLLY_DEBUG") != 0;
}
void polly_getPTXModule(void *PTXBuffer, PollyGPUModule **Module) {