From 1771d391facee5fe7a244f4f57a7adb23b3fb81c Mon Sep 17 00:00:00 2001 From: Yang Liu Date: Fri, 16 Aug 2024 15:56:18 -0700 Subject: [PATCH] removed cudaSetDevice in setLUstruct_GPU --- SRC/CplusplusFactor/schurCompUpdate_impl.cuh | 6 +++--- {SRC/cuda => SRC_OLD}/superlu_gpu.cu | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename {SRC/cuda => SRC_OLD}/superlu_gpu.cu (100%) diff --git a/SRC/CplusplusFactor/schurCompUpdate_impl.cuh b/SRC/CplusplusFactor/schurCompUpdate_impl.cuh index d777395a..f65c73a0 100644 --- a/SRC/CplusplusFactor/schurCompUpdate_impl.cuh +++ b/SRC/CplusplusFactor/schurCompUpdate_impl.cuh @@ -696,12 +696,12 @@ int_t xLUstruct_t::setLUstruct_GPU() A_gpu.Pc = Pc; A_gpu.maxSuperSize = ldt; - /* Sherry: this mapping may be inefficient on Frontier */ + /* Sherry: this mapping may be inefficient on Frontier. Yang: I commented it out as the mapping can be set by env SUPERLU_BIND_MPI_GPU in superlu_gridinit3d */ /*Mapping to device*/ int deviceCount; cudaGetDeviceCount(&deviceCount); // How many GPUs? - int device_id = grid3d->iam % deviceCount; - cudaSetDevice(device_id); + // int device_id = grid3d->iam % deviceCount; + // cudaSetDevice(device_id); double tRegion[5]; size_t useableGPUMem = getGPUMemPerProcs(grid3d->comm); diff --git a/SRC/cuda/superlu_gpu.cu b/SRC_OLD/superlu_gpu.cu similarity index 100% rename from SRC/cuda/superlu_gpu.cu rename to SRC_OLD/superlu_gpu.cu