Removed call to deprecated cudaThreadExit

`cudaThreadExit` has been deprecated in favour of `cudaDeviceReset`, which is already being called.
This commit is contained in:
Kjetil Olsen Lye 2023-10-09 10:49:31 +02:00 committed by GitHub
parent 3f436501d2
commit df0fdbbd0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,6 @@ setDevice(int mpiRank, [[maybe_unused]] int numberOfMpiRanks)
// TODO: We need to be more sophistacted here. We have no guarantee this will pick the correct device.
const auto deviceId = mpiRank % deviceCount;
OPM_CUDA_SAFE_CALL(cudaDeviceReset());
OPM_CUDA_SAFE_CALL(cudaThreadExit());
OPM_CUDA_SAFE_CALL(cudaSetDevice(deviceId));
OpmLog::info("Set CUDA device to " + std::to_string(deviceId) + " (out of " + std::to_string(deviceCount)
+ " devices).");