mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Removed call to deprecated cudaThreadExit
`cudaThreadExit` has been deprecated in favour of `cudaDeviceReset`, which is already being called.
This commit is contained in:
parent
3f436501d2
commit
df0fdbbd0b
@ -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