diff --git a/base/src/device_properties.cu b/base/src/device_properties.cu index 6b3b045d..aea1a0e7 100644 --- a/base/src/device_properties.cu +++ b/base/src/device_properties.cu @@ -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; }