[CUDA] Disable Workgroup pass for CUDA devices
This currently breaks because the CUDA get_* functions use extern
global variables which are nuked by privatizeContext(). Replacing
these variables with placeholder intrinsic functions would probably
fix it.
@@ -1404,6 +1404,8 @@ static PassManager& kernel_compiler_passes
}
// Add the work group launcher functions and privatize the pseudo variable
// (local id) accesses.
+ // TODO: get the workgroup pass working with CUDA?
+ if (strcmp(device->ops->device_name, "CUDA"))
passes.push_back("workgroup");
// Attempt to move all allocas to the entry block to avoid the need for
