Skip to content
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

cudaarray installation problem #18

Closed
malzantot opened this issue Jul 26, 2015 · 3 comments
Closed

cudaarray installation problem #18

malzantot opened this issue Jul 26, 2015 · 3 comments

Comments

@malzantot
Copy link

Hi,

I am trying to install "cudarray" but I am facing a problem.

After doing make and make install when I tried to do python setup.py install, I get the following error :
./cudarray/wrap/array_data.cpp:1384:53: fatal error: arithmetic on a pointer to void __pyx_v_self->dev_ptr = (__pyx_v_owner->dev_ptr + (__pyx_v_offset * ...

I am using Mac OS X 10.10.3 and GCC (Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM 3.6.0svn) , I also have the Nvidia compiler nvcc installed using the following version :

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2015 NVIDIA Corporation Built on Mon_Feb_16_23:23:36_CST_2015 Cuda compilation tools, release 7.0, V7.0.27

@andersbll
Copy link
Owner

Hi, it seems Clang is more pedantic about void * arithmetic. In array_data.pyx, try changing

self.dev_ptr = owner.dev_ptr + offset*dtype.itemsize

to

self.dev_ptr = (<char *> owner.dev_ptr) + offset*dtype.itemsize

@malzantot
Copy link
Author

Thanks a lot , this solved my issue. !

I submitted a pull request #19 for that, please accept it.

@andersbll
Copy link
Owner

Great. I have merged the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants