automl icon indicating copy to clipboard operation
automl copied to clipboard

Check failed: CUDA_SUCCESS == cuDevicePrimaryCtxGetState(device, &former_prima y_context_flags, &former_primary_context_is_active) (0 vs. 303)

Open uysalmustafa opened this issue 6 years ago • 2 comments

Hi, My GPU is NVIDIA GeForce GT 220. It doesn't support CUDA. When I run it I see this.

(base) D:\sunum\automl3\efficientdet>python run.py
2020-06-29 12:21:24.607896: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64
_101.dll not found
2020-06-29 12:21:24.612896: I tensorflow/stream_executor/cuda/cudart_stub.cc:29]
 Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-06-29 12:21:26.490004: I tensorflow/compiler/xla/service/service.cc:168] XL
A service 0x55b5650 initialized for platform Host (this does not guarantee that
XLA will be used). Devices:
2020-06-29 12:21:26.494004: I tensorflow/compiler/xla/service/service.cc:176]
StreamExecutor device (0): Host, Default Version
2020-06-29 12:21:26.498004: I tensorflow/stream_executor/platform/default/dso_lo
ader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-06-29 12:21:26.546007: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1
561] Found device 0 with properties:
pciBusID: 0000:01:00.0 name: GeForce GT 220 computeCapability: 1.2
coreClock: 1.012GHz coreCount: 6 deviceMemorySize: 1.00GiB deviceMemoryBandwidth
: 19.88GiB/s
2020-06-29 12:21:26.561008: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64
_101.dll not found
2020-06-29 12:21:26.568008: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cublas64_10.dll'; dlerror: cublas64_
10.dll not found
2020-06-29 12:21:26.574009: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10
.dll not found
2020-06-29 12:21:26.580009: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_
10.dll not found
2020-06-29 12:21:26.586009: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cusolver64_10.dll'; dlerror: cusolve
r64_10.dll not found
2020-06-29 12:21:26.593010: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cusparse64_10.dll'; dlerror: cuspars
e64_10.dll not found
2020-06-29 12:21:26.599010: W tensorflow/stream_executor/platform/default/dso_lo
ader.cc:55] Could not load dynamic library 'cudnn64_7.dll'; dlerror: cudnn64_7.d
ll not found
2020-06-29 12:21:26.604010: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1
598] Cannot dlopen some GPU libraries. Please make sure the missing libraries me
ntioned above are installed properly if you would like to use GPU. Follow the gu
ide at https://www.tensorflow.org/install/gpu for how to download and setup the
required libraries for your platform.
Skipping registering GPU devices...
2020-06-29 12:21:26.617011: F tensorflow/stream_executor/cuda/cuda_driver.cc:391
] Check failed: CUDA_SUCCESS == cuDevicePrimaryCtxGetState(device, &former_prima
ry_context_flags, &former_primary_context_is_active) (0 vs. 303)

So is it impossible for me to run this repo on my local pc?

uysalmustafa avatar Jun 29 '20 15:06 uysalmustafa

Hello, you can run on the CPU, not use cuda

xiaoxin05 avatar Jul 01 '20 08:07 xiaoxin05

@MustafaUysal160207077 You can run them on CPU by setting "export CUDA_VISIBLE_DEVICES="

mingxingtan avatar Jul 01 '20 18:07 mingxingtan