Cuda Error Invalid Argument
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the invalid argument cuda memcpy company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions cuda kernel invalid argument Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million cuda invalid configuration argument programmers, just like you, helping each other. Join them; it only takes a minute: Sign up CUDA invalid argument when trying to copy struct to device's memory (cudaMemcpy) up vote 1 down vote favorite I'm trying
Cudamalloc Invalid Argument
to figure out how I should create a struct/class destined to be sent to the device, but I keep getting this "invalid argument" CUDA error. I did a small example that shows the error: #include
from GoogleSign inHidden fieldsSearch for groups or messages
Support Search GitHub This repository Watch 128 Star 769 Fork 476 rbgirshick/rcnn Code Issues 47 Pull requests 3 Projects 0 Pulse Graphs New issue error == cudaSuccess (11 vs. 0) invalid argument #28 Open songjun54cm opened this Issue Dec 5, 2014 · 8 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 7 participants songjun54cm commented Dec 5, 2014 running rcnn_demo, error occurred when f = caffe('forward', batches(j)); the full message is : F1205 14:31:18.047643 17619 relu_layer.cu:27] Check failed: error == cudaSuccess (11 vs. 0) invalid argument My GPU is Tesla K20 the compute capability is 3.5. And Caffe have been installed with all the caffe test successfully passed... the version of caffe is the latest caffe release(the release candidate for Caffe 1.0) with head 737ea5e don't know what is wrong.... need help..... dreadlord1984 commented Jan 19, 2015 Have you solved this problem? Or what's the reason of this situation? I meet the same error in fintuning the trained model just as describe here . http://caffe.berkeleyvision.org/gathered/examples/finetune_flickr_style.html. I used the caffe version 0.99. And run successfully in other training task, just failed finetuning the trained model with different classes output. My error: math_functions.cpp:90] Check failed: error == cudaSuccess (11 vs. 0) invalid argument *** Check failure stack trace: *** @ 0x7fca72b8edaa (unknown) @ 0x7fca72b8ece4 (unknown) @ 0x7fca72b8e6e6 (unknown) @ 0x7fca72b91687 (unknown) @ 0x4b6dec caffe::caffe_copy<>() @ 0x49ff4f caffe::SGDSolver<>::ComputeUpdateValue() @ 0x49b6d3 caffe::Solver<>::Solve() @ 0x41046e caffe::Solver<>::Solve() @ 0x40de4d train() @ 0x40f508 main @ 0x7fca6ff3bec5 (unknown) @ 0x40d6e9 (unknown) Aborted (core dumped) songjun54cm commented Jan 19, 2015 Finally, I make it run by changing the batch size from 256 to 30. to do this you need to change the value 'batch' in 'rcnn_model.mat' and the 'input_dim' in prototxt file. some similar discussion can be found at #10 zhenni commented Sep 19, 2015 I added the following lines to commands using multiple “arch” flags in Nvidia's NVCC compiler, and the error does not occur anymore. -gencode=arch=compute_20,code=\"sm_20,compute_20\" -gencode=ar