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:
@@ -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.
|
// TODO: We need to be more sophistacted here. We have no guarantee this will pick the correct device.
|
||||||
const auto deviceId = mpiRank % deviceCount;
|
const auto deviceId = mpiRank % deviceCount;
|
||||||
OPM_CUDA_SAFE_CALL(cudaDeviceReset());
|
OPM_CUDA_SAFE_CALL(cudaDeviceReset());
|
||||||
OPM_CUDA_SAFE_CALL(cudaThreadExit());
|
|
||||||
OPM_CUDA_SAFE_CALL(cudaSetDevice(deviceId));
|
OPM_CUDA_SAFE_CALL(cudaSetDevice(deviceId));
|
||||||
OpmLog::info("Set CUDA device to " + std::to_string(deviceId) + " (out of " + std::to_string(deviceCount)
|
OpmLog::info("Set CUDA device to " + std::to_string(deviceId) + " (out of " + std::to_string(deviceCount)
|
||||||
+ " devices).");
|
+ " devices).");
|
||||||
|
|||||||
Reference in New Issue
Block a user