[MLIR][GPU] Remove call to cudaSetDevice(), which no longer exists
authorKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Thu, 17 Feb 2022 21:37:15 +0000 (21:37 +0000)
committerKrzysztof Drewniak <Krzysztof.Drewniak@amd.com>
Thu, 17 Feb 2022 21:38:05 +0000 (21:38 +0000)
Differential Revision: https://reviews.llvm.org/D120085

mlir/lib/ExecutionEngine/CudaRuntimeWrappers.cpp

index dd66056..44ed5b0 100644 (file)
@@ -194,5 +194,4 @@ mgpuMemHostRegisterMemRef(int64_t rank, StridedMemRefType<char, 1> *descriptor,
 
 extern "C" MLIR_CUDA_WRAPPERS_EXPORT void mgpuSetDefaultDevice(int32_t device) {
   defaultDevice = device;
-  CUDA_REPORT_IF_ERROR(cudaSetDevice(device));
 }