-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors running tests on Windows #77
Comments
I've never seen this kind of error. At least cl-cuda has a fact that works on Windows as #70. Questions I have are: a) Is this dependent of CL implementation or broader problem? For a), which CL implementation do you use, CCL? Would you try it with SBCL? For b), would you get what values In cl-cuda/src/api/memory.lisp:
(defun memcpy-host-to-device (device-ptr host-ptr type n)
(let ((size (cffi-type-size type)))
+ (print device-ptr)
+ (print host-ptr)
(cu-memcpy-host-to-device device-ptr host-ptr (* n size)))) |
What I get is:
I kinda find it odd also, as I see there's been a good bit of development for Windows, and I was looking for a while trying to get it running properly. As for my system, I'm running LispWorks 6, 32bit (on a 64bit machine, licensing costs $$$ -_- ) I've tried with both sbcl and ccl, and they all have problems relating to compiling or loading p.s. I noticed that in issue #70 you asked to put |
#70 has patches to fix problems on Windows including this, but they are not merged to |
No problem, I've got some time before I really start wanting to do everything CUDA-related in Lisp. Right now I'm still in the prototype stage of my projects, so doing some of the CUDA-specific stuff is a pain, but not horrible. Thanks again! |
Okay. Thanks for your interest in cl-cuda. |
I made a working around branch for windows. https://github.com/takagi/cl-cuda/tree/windows Would you try it when it's convenient for you, at least |
I apologize for the delay in getting back to you. Haven't been feeling well, and this no exploratory coding. Anyway, attempting to Take care. |
Okay. After some testing, I'm able to get CCL 64-bit to work. SBCL doesn't seem to work, as it looks like cffi wants to use Trying 32-bit anything doesn't work with the same error. My guess is that it simply won't work and there isn't any sense in trying. I could be wrong on that point, so don't quote me. To be absolutely clear, here is how I got things to work for me:
If someone uses the above they shouldn't have (many) problems. Let me know if there is anything else you would like me to try. For now I'm closing this, as it all looks good! |
I hoped to get cl-cuda running on my 32 bit Lispworks 6.0.1 on Windows 10 with Cygwin compilers (ql:quickload "cl-cuda-test") �[37mtest cuInit�[0m Error: CU-MEMCPY-HOST-TO-DEVICE failed with driver API error No. 1. I guess this shows that NVCUDA.DLL is somehow connected but it's before nvcc comes into play. This issue #77 had the same problem before. It seemed to be solved. What can I do ? |
Hi there, I've been trying to get cl-cuda working on my system, but it doesn't seem to work quite right. It took a bit, setting environment variables so that headers and libs would be picked up, but now that I've got it mostly working I get this when I run the tests:
Even when I try the
vector-add
example i get something similar:I am able to write kernels & have them run on my local GPU in C, but not Lisp. Any help is appreciated! Thank you!!
The text was updated successfully, but these errors were encountered: