-
Notifications
You must be signed in to change notification settings - Fork 404
GPU->CPU Memcpy failed #436
Comments
Did you find any solution for this issue? |
no solution. |
Just Change the Tensorflow version! |
you can follow the following link to solve this issue! |
Hey, i am not sure why CUDNN handle could not be created
|
I tried
and i get
what version of cuDNN is everybody else running?? is this a common error thrown when the GPU does not have enough physical memory to run training? |
Hey everyone,
I am trying to run a training on 2 CBCT segmented volumes but I am running into an issue of GPU->CPU Memcpy failed. I was reading around in the tensorflow repo that it is an issue of insufficient memory so i reduced the size of the volumes drastically, as well as the batch_size and queue_length however I still get this error. I have included the configuration file here. My PC runs on 32 GB of RAM and GeForce RTX2060 w/ 6GB VRAM. NiftyNet and TensorFlow recognize the device. I have CUDA 10 installed on the nvidia driver 418 w/ cuDNN 7.6.3
When i run in the python console
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
the GPU appears and everything is fine
Most notably I see "could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR" then when niftynet performs a Parameters from random initialisations where the shuffle buffer is filled, it gives the GPU->CPU memcpy failed error
2019-08-24 17:21:52.622248: I tensorflow/core/kernels/data/shuffle_dataset_op.cc:162] Shuffle buffer filled.
I do not get this issue when performing training on the CPU.
I switched the networks from dense_vnet to highres3dnet and at this point I only get the "Could not create cudnn handle" error. I modified the util_common.py tf_config() method to include config.gpu_options.allow_growth = True
as described in tensorflow/tensorflow#24496
but that does not seem to address the issue.
Any thoughts? Is this an issue of not enough VRAM?
the command i use to run is
python3 net_segment.py train -c ~/mandible_segmentation/config.ini
My configuration is
running the following code from within python3 cli works just fine
The text was updated successfully, but these errors were encountered: