Skip to content

Commit

Permalink
Revert "Reinstated the code that ensured cudaGetDeviceProperties is n…
Browse files Browse the repository at this point in the history
…ot repeatedly called."

This reverts commit 83629fe.
  • Loading branch information
marsaev committed Apr 7, 2020
1 parent 6de7d80 commit 0a2f5f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions base/src/device_properties.cu
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
namespace amgx
{
static cudaDeviceProp deviceProps;
static bool initialized=false;
//static bool initialized=false;

cudaDeviceProp getDeviceProperties()
{
if(!initialized) {
int dev;
cudaGetDevice(&dev);
cudaGetDeviceProperties(&deviceProps, dev);
initialized=true;
}
//if(!initialized) {
int dev;
cudaGetDevice(&dev);
cudaGetDeviceProperties(&deviceProps, dev);
//initialized=true;
//}
return deviceProps;
}

Expand Down

0 comments on commit 0a2f5f1

Please sign in to comment.