Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

Commit

Permalink
fixup the fixup 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
olupton committed Dec 22, 2021
1 parent 847d415 commit 53b0c5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions coreneuron/gpu/nrn_acc_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ void cnrn_target_set_default_device(int device_num) {
// is not enough: there were errors on some nodes when not-the-0th GPU was
// used. These seemed to be related to the NMODL instance structs, which are
// allocated using cudaMallocManaged.
//auto const cuda_code = cudaSetDevice(device_num);
//assert(cuda_code == cudaSuccess);
auto const cuda_code = cudaSetDevice(device_num);
assert(cuda_code == cudaSuccess);
#else
throw std::runtime_error(
"cnrn_target_set_default_device() not implemented without OpenACC/OpenMP and gpu build");
Expand Down

0 comments on commit 53b0c5f

Please sign in to comment.