mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4917 from kjetilly/remove_cuda_thread_exit
Removed call to deprecated cudaThreadExit
This commit is contained in:
commit
ab6241f1f6
@ -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).");
|
||||
|
Loading…
Reference in New Issue
Block a user