[PyCUDA] Pycuda error in windows 10 Python 3.7.3 Cuda9.0

2019-06-07 Thread olaycab
I installed pycuda by downloading .whl file.

When I run the command :

import pycuda.gpuarray as gpuarray

I get the below error:
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Anaconda\lib\site-packages\pycuda\gpuarray.py", line 4, in 
import pycuda.elementwise as elementwise
  File "C:\Anaconda\lib\site-packages\pycuda\elementwise.py", line 35, in 

from pycuda.tools import context_dependent_memoize
  File "C:\Anaconda\lib\site-packages\pycuda\tools.py", line 34, in 
import pycuda.driver as cuda
  File "C:\Anaconda\lib\site-packages\pycuda\driver.py", line 6, in 
from pycuda._driver import *  # noqa
ModuleNotFoundError: No module named 'pycuda._driver'

The folder has "_driver.cp37-win_amd64.pyd" file but not pycuda._driver file.
___
PyCUDA mailing list -- pycuda@tiker.net
To unsubscribe send an email to pycuda-le...@tiker.net


[PyCUDA] Import Error: No module named compyte.dtypes

2019-05-23 Thread Dan Guralnik

Hello,

When attempting to run pycuda (the latest 2019 version), I encounter the 
following error message from python (2.7):

--
 File "test_cuda.py", line 9, in 
import pycuda.tools
  File "C:\Users\kotmasha\Anaconda2\lib\site-packages\pycuda\tools.py", line 44, in 

from pycuda.compyte.dtypes import (
ImportError: No module named compyte.dtypes
--

Do you think my installation is missing something? If so, what is and why? 
(I've refreshed pip, setuptools, pytools ahead of installing pycuda)

Thanks,
-Dan

--
Dan Guralnīk, Ph.D.
Postoctoral Researcher
University of Pennsylvania
Electrical & Systems Engineering
___
PyCUDA mailing list -- pycuda@tiker.net
To unsubscribe send an email to pycuda-le...@tiker.net


[PyCUDA] Re: error about index type when running sparse cg example

2019-03-20 Thread Andreas Kloeckner
bren...@u.northwestern.edu writes:
> I'm trying to run the cg example posted at 
> https://andreask.cs.illinois.edu/PyCuda/Examples/SparseSolve
>
> where I have copied the file into one called: py_cuda_cg_test.py
>
> I'm testing using a 5 by 5 sparse symmetric .mm file I found here
> https://people.sc.fsu.edu/~jburkardt/data/mm/m_05_05_crs.mm
>
> though after some messing around I don't think that the file matters much
>
> when I run the command
> $ python py_cuda_cg_test.py m_05_05_crs.mm --is-symmetric
>
> I get the error:
>
> Traceback (most recent call last):
>   File "py_cuda_cg_test.py", line 88, in 
> main_cg()
>   File "py_cuda_cg_test.py", line 35, in main_cg
> spmv = PacketedSpMV(csr_mat, options.is_symmetric, csr_mat.dtype)
>   File 
> "/home/bs162/.local/lib/python2.7/site-packages/pycuda/sparse/packeted.py", 
> line 185, in __init__
> local_row_costs)
>   File "pycuda/sparse/pkt_build_cython.pyx", line 22, in 
> pycuda.sparse.pkt_build_cython.build_pkt_data_structure 
> (/home/bs162/.pyxbld/temp.linux-x86_64-2.7/pyrex/pycuda/sparse/pkt_build_cython.c:1219)
> TypeError: 'numpy.float64' object cannot be interpreted as an index
>
> which seems to indicate that the index information is somehow being cast from 
> an int to a float during the call to packeted.py
>
> I get this error with both python 2.7 and 3.6 and I am using numpy 1.13.3. 
> Any help would be greatly appreciated! 

While I'd be happy to merge patches, I do not currently have time to
support the (undocumented/experimental) sparse matrix/linear solver
functionality in PyCUDA.

Sorry,
Andreas


signature.asc
Description: PGP signature
___
PyCUDA mailing list -- pycuda@tiker.net
To unsubscribe send an email to pycuda-le...@tiker.net


Re: [PyCUDA] Handle Error in CUDA Kernel

2017-06-21 Thread Rana, Sanjay
Hi Andreas,

PS. Another example of using a macro for handling error inside the kernel code 
in C++ dev environment but am yet to see someone use it in pycuda.

https://codeyarns.com/2011/03/02/cuda-assertion-in-kernel-code/


Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: sanjay.r...@rpa.gsi.gov.uk
Follow us on Twitter @Ruralpay 


-Original Message-
From: Rana, Sanjay 
Sent: 20 June 2017 19:46
To: 'Andreas Kloeckner'; pycuda@tiker.net
Subject: RE: [PyCUDA] Handle Error in CUDA Kernel

Hi Andreas

Thanks. I was thinking of something like the following:

https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api

I haven't really tried this because mainly being a newbie into C++ and pycuda 
really. Hence I was looking for examples where in errors arising in the kernel 
were being handled and, so for example in case of batch processing of lots of 
images, recover from occasional crash in few images and  reset the various 
initialisation parameters and continue on. Apologies if this comes across as 
mumbo jumbo..
 

Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: sanjay.r...@rpa.gsi.gov.uk Follow us 
on Twitter @Ruralpay 

-Original Message-
From: Andreas Kloeckner [mailto:li...@informa.tiker.net]
Sent: 20 June 2017 17:57
To: Rana, Sanjay; pycuda@tiker.net
Subject: Re: [PyCUDA] Handle Error in CUDA Kernel

"Rana, Sanjay" <sanjay.r...@rpa.gsi.gov.uk> writes:
> Are there any examples out there on ways to catch and handle errors in the 
> CUDA Kernel code ?
> I have seen examples for CUDA programming in C/C++ but not so many for pycuda.

Could you point us towards those examples? That would make it easier to 
understand what you mean by "catch and handle errors". In addition, please 
describe what happens when you do the equivalent thing in PyCUDA.

Andreas

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Cisco ESA for the presence of computer viruses.



___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Handle Error in CUDA Kernel

2017-06-20 Thread Rana, Sanjay
Hi Andreas

Thanks. I was thinking of something like the following:

https://stackoverflow.com/questions/14038589/what-is-the-canonical-way-to-check-for-errors-using-the-cuda-runtime-api

I haven't really tried this because mainly being a newbie into C++ and pycuda 
really. Hence I was looking for examples where in errors arising in the kernel 
were being handled and, so for example in case of batch processing of lots of 
images, recover from occasional crash in few images and  reset the various 
initialisation parameters and continue on. Apologies if this comes across as 
mumbo jumbo..
 

Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: sanjay.r...@rpa.gsi.gov.uk
Follow us on Twitter @Ruralpay 

-Original Message-
From: Andreas Kloeckner [mailto:li...@informa.tiker.net] 
Sent: 20 June 2017 17:57
To: Rana, Sanjay; pycuda@tiker.net
Subject: Re: [PyCUDA] Handle Error in CUDA Kernel

"Rana, Sanjay" <sanjay.r...@rpa.gsi.gov.uk> writes:
> Are there any examples out there on ways to catch and handle errors in the 
> CUDA Kernel code ?
> I have seen examples for CUDA programming in C/C++ but not so many for pycuda.

Could you point us towards those examples? That would make it easier to 
understand what you mean by "catch and handle errors". In addition, please 
describe what happens when you do the equivalent thing in PyCUDA.

Andreas

__
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
__

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Cisco ESA for the presence of computer viruses.



___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Handle Error in CUDA Kernel

2017-06-20 Thread Andreas Kloeckner
"Rana, Sanjay"  writes:
> Are there any examples out there on ways to catch and handle errors in the 
> CUDA Kernel code ?
> I have seen examples for CUDA programming in C/C++ but not so many for pycuda.

Could you point us towards those examples? That would make it easier to
understand what you mean by "catch and handle errors". In addition,
please describe what happens when you do the equivalent thing in PyCUDA.

Andreas

___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


[PyCUDA] Handle Error in CUDA Kernel

2017-06-19 Thread Rana, Sanjay
Hello,

Are there any examples out there on ways to catch and handle errors in the CUDA 
Kernel code ?
I have seen examples for CUDA programming in C/C++ but not so many for pycuda.

Thanks,

Sanjay Rana | Design Directorate
Rural Payments Agency | Room 200 | North Gate House | Reading | RG1 1AF
Jabber: 02077642065 | ext. 42065 | Email: 
sanjay.r...@rpa.gsi.gov.uk
Follow us on Twitter @Ruralpay

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
Cisco ESA for the presence of computer viruses.

___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] pycuda execute error

2017-03-29 Thread Peter Walsh
CUDA sdk only supports certain specific versions of visual studio.

Note that Microsoft VC compiler for Python is NOT the same thing as visual
studio! You need both of these installed.

I suggest you install vs2013 community edition (free). Then try to run the
pure c++ cuda samples. If that all works ok then move on to testing pycuda.

On 29 March 2017 at 05:19, 张鲁宁  wrote:

> I successfully installed pycuda,by install the Microsoft VC compiler for
> python 2.7, but when i executing the test code, it comes out a new error .
> The tarceback is too long to read,I have no clue about it,could anybody
> offer me some help again please?
>
>  I dont know how to set the .theanorc.txt, I copied it from net and edit
> it a little,i dont know how to make all these thing rignt, ,intalling  cuda
> 7.5 also dont work I really need your help,have you met this situation?
> I use vs2010, anaconda 2, use pip intall to install theano and pycuda,Use
> conda install mingw libpython, os is win7 64bit,my gpu is GTX770m,and set
> all the env varible to path,but while using cpu,the code can run
> correctly,but after setting it to gpu, it comes out a lot error. I was so
>  depressed,Thank you advance.
>
>
>1. from theano import function, config, shared, sandbox
>2. import theano.tensor as T
>3. import numpy
>4. import time
>5.
>6. vlen = 10 * 30 * 768  # 10 x #cores x # threads per core
>7. iters = 1000
>8.
>9. rng = numpy.random.RandomState(22)
>10. x = shared(numpy.asarray(rng.rand(vlen), config.floatX))
>11. f = function([], T.exp(x))
>12. print f.maker.fgraph.toposort()
>13. t0 = time.time()
>14. for i in xrange(iters):
>15. r = f()
>16. t1 = time.time()
>17. print 'Looping %d times took' % iters, t1 - t0, 'seconds'
>18. print 'Result is', r
>19. if numpy.any([isinstance(x.op, T.Elemwise) for x in f.maker.
>fgraph.toposort()]):
>20. print 'Used the cpu'
>21. else:
>22. print 'Used the gpu'
>
>
> ___
> PyCUDA mailing list
> PyCUDA@tiker.net
> https://lists.tiker.net/listinfo/pycuda
>
>
___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


[PyCUDA] pycuda execute error

2017-03-28 Thread 张鲁宁
I successfully installed pycuda,by install the Microsoft VC compiler for python 
2.7, but when i executing the test code, it comes out a new error . The 
tarceback is too long to read,I have no clue about it,could anybody offer me 
some help again please? 


 I dont know how to set the .theanorc.txt, I copied it from net and edit it a 
little,i dont know how to make all these thing rignt, ,intalling  cuda 7.5 also 
dont work I really need your help,have you met this situation? I use 
vs2010, anaconda 2, use pip intall to install theano and pycuda,Use conda 
install mingw libpython, os is win7 64bit,my gpu is GTX770m,and set all the env 
varible to path,but while using cpu,the code can run correctly,but after 
setting it to gpu, it comes out a lot error. I was so depressed,Thank you 
advance.


from theano import function, config, shared, sandbox  
import theano.tensor as T  
import numpy  
import time  
  
vlen = 10 * 30 * 768  # 10 x #cores x # threads per core  
iters = 1000  
  
rng = numpy.random.RandomState(22)  
x = shared(numpy.asarray(rng.rand(vlen), config.floatX))  
f = function([], T.exp(x))  
print f.maker.fgraph.toposort()  
t0 = time.time()  
for i in xrange(iters):  
r = f()  
t1 = time.time()  
print 'Looping %d times took' % iters, t1 - t0, 'seconds'  
print 'Result is', r  
if numpy.any([isinstance(x.op, T.Elemwise) for x in 
f.maker.fgraph.toposort()]):  
print 'Used the cpu'  
else:  
print 'Used the gpu'  C:\ProgramData\Anaconda2\python.exe 
C:/Users/Administrator/Desktop/work/ntm-one-shot-master/tt.py
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be 
removed in the next release (v0.10).  Please switch to the gpuarray backend. 
You can get more information about how to switch at this URL:
 
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29

Using gpu device 0: GeForce GTX 770M (CNMeM is disabled, cuDNN not available)
1 #include 
2 #include 
3 #include "theano_mod_helper.h"
4 #include "cuda_ndarray.cuh"
5 //
6   Support Code
7 //
8 
9 static __global__ void 
kernel_reduce_ccontig_node_544270fe7a21a748315f83abfe0913cc_0(
10 const unsigned int d0,
11 const float *A,
12 float * Z)
13 {
14 const int threadCount = blockDim.x;
15 const int threadNum = threadIdx.x;
16 extern __shared__ float buf[];
17 float myresult = 0;
18 
19 if (warpSize != 32)
20 {
21 return;  //TODO: set error code
22 }
23 
24 for (int i0 = threadIdx.x; i0 < d0; i0 += blockDim.x)
25 {
26 myresult = myresult + A[i0];
27 }
28 
29 __syncthreads(); // some kernel do multiple reduction.
30 buf[threadNum] = myresult;
31 __syncthreads();
32 
33 // rest of function is handled by one warp
34 if (threadNum < warpSize)
35 {
36 //round up all the partial sums into the first `warpSize` 
elements
37 for (int i = threadNum + warpSize; i < threadCount; i += 
warpSize)
38 {
39 myresult = myresult + buf[i];
40 }
41 buf[threadNum] = myresult;
42 /*Comment this optimization as it don't work on Fermi GPU.
43 TODO: find why it don't work or put the GPU compute capability into 
the version
44 // no sync because only one warp is running
45 if(threadCount >32)
46 {buf[threadNum] = buf[threadNum] + 
buf[threadNum+16];buf[threadNum] = buf[threadNum] + 
buf[threadNum+8];buf[threadNum] = buf[threadNum] + 
buf[threadNum+4];buf[threadNum] = buf[threadNum] + 
buf[threadNum+2];buf[threadNum] = buf[threadNum] + buf[threadNum+1];
47 if (threadNum == 0)
48 {
49 Z[0] = buf[0];
50 }
51 
52 }
53 else */
54 if (threadNum < 16)
55 {
56 //reduce so that threadNum 0 has the reduction of everything
57 if (threadNum + 16 < threadCount) buf[threadNum] = 
buf[threadNum] + buf[threadNum+16];if (threadNum + 8 < threadCount) 
buf[threadNum] = buf[threadNum] + buf[threadNum+8];if (threadNum + 4 < 
threadCount) buf[threadNum] = buf[threadNum] + buf[threadNum+4];if (threadNum + 
2 < threadCount) buf[threadNum] = buf[threadNum] + buf[threadNum+2];if 
(threadNum + 1 < threadCount) buf[threadNum] = buf[threadNum] + 
buf[threadNum+1];
58 if (threadNum == 0)
59 {
60 Z[0] = buf[0];
61 }
62 }
63 }
64 
65 }
66 
67 
68 static __global__ void 
kernel_reduce_1_node_544270fe7a21a748315f83abfe0913cc_0(
69 

[PyCUDA] pycuda execute error

2017-03-28 Thread 张鲁宁
I successfully installed pycuda,by install the Microsoft VC compiler for python 
2.7, but when i executing the test code, it comes out a new error . The 
tarceback is too long to read,I have no clue about it,could anybody offer me 
some help again please? thank you so much.


from theano import function, config, shared, sandbox  
import theano.tensor as T  
import numpy  
import time  
  
vlen = 10 * 30 * 768  # 10 x #cores x # threads per core  
iters = 1000  
  
rng = numpy.random.RandomState(22)  
x = shared(numpy.asarray(rng.rand(vlen), config.floatX))  
f = function([], T.exp(x))  
print f.maker.fgraph.toposort()  
t0 = time.time()  
for i in xrange(iters):  
r = f()  
t1 = time.time()  
print 'Looping %d times took' % iters, t1 - t0, 'seconds'  
print 'Result is', r  
if numpy.any([isinstance(x.op, T.Elemwise) for x in 
f.maker.fgraph.toposort()]):  
print 'Used the cpu'  
else:  
print 'Used the gpu'  C:\ProgramData\Anaconda2\python.exe 
C:/Users/Administrator/Desktop/work/ntm-one-shot-master/tt.py
WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be 
removed in the next release (v0.10).  Please switch to the gpuarray backend. 
You can get more information about how to switch at this URL:
 
https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29

Using gpu device 0: GeForce GTX 770M (CNMeM is disabled, cuDNN not available)
1 #include 
2 #include 
3 #include "theano_mod_helper.h"
4 #include "cuda_ndarray.cuh"
5 //
6   Support Code
7 //
8 
9 static __global__ void 
kernel_reduce_ccontig_node_544270fe7a21a748315f83abfe0913cc_0(
10 const unsigned int d0,
11 const float *A,
12 float * Z)
13 {
14 const int threadCount = blockDim.x;
15 const int threadNum = threadIdx.x;
16 extern __shared__ float buf[];
17 float myresult = 0;
18 
19 if (warpSize != 32)
20 {
21 return;  //TODO: set error code
22 }
23 
24 for (int i0 = threadIdx.x; i0 < d0; i0 += blockDim.x)
25 {
26 myresult = myresult + A[i0];
27 }
28 
29 __syncthreads(); // some kernel do multiple reduction.
30 buf[threadNum] = myresult;
31 __syncthreads();
32 
33 // rest of function is handled by one warp
34 if (threadNum < warpSize)
35 {
36 //round up all the partial sums into the first `warpSize` 
elements
37 for (int i = threadNum + warpSize; i < threadCount; i += 
warpSize)
38 {
39 myresult = myresult + buf[i];
40 }
41 buf[threadNum] = myresult;
42 /*Comment this optimization as it don't work on Fermi GPU.
43 TODO: find why it don't work or put the GPU compute capability into 
the version
44 // no sync because only one warp is running
45 if(threadCount >32)
46 {buf[threadNum] = buf[threadNum] + 
buf[threadNum+16];buf[threadNum] = buf[threadNum] + 
buf[threadNum+8];buf[threadNum] = buf[threadNum] + 
buf[threadNum+4];buf[threadNum] = buf[threadNum] + 
buf[threadNum+2];buf[threadNum] = buf[threadNum] + buf[threadNum+1];
47 if (threadNum == 0)
48 {
49 Z[0] = buf[0];
50 }
51 
52 }
53 else */
54 if (threadNum < 16)
55 {
56 //reduce so that threadNum 0 has the reduction of everything
57 if (threadNum + 16 < threadCount) buf[threadNum] = 
buf[threadNum] + buf[threadNum+16];if (threadNum + 8 < threadCount) 
buf[threadNum] = buf[threadNum] + buf[threadNum+8];if (threadNum + 4 < 
threadCount) buf[threadNum] = buf[threadNum] + buf[threadNum+4];if (threadNum + 
2 < threadCount) buf[threadNum] = buf[threadNum] + buf[threadNum+2];if 
(threadNum + 1 < threadCount) buf[threadNum] = buf[threadNum] + 
buf[threadNum+1];
58 if (threadNum == 0)
59 {
60 Z[0] = buf[0];
61 }
62 }
63 }
64 
65 }
66 
67 
68 static __global__ void 
kernel_reduce_1_node_544270fe7a21a748315f83abfe0913cc_0(
69 const unsigned int d0,
70 const float *A, const int sA0,
71 float * Z)
72 {
73 const int threadCount = blockDim.x;
74 const int threadNum = threadIdx.x;
75 extern __shared__ float buf[];
76 float myresult = 0;
77 
78 if (warpSize != 32)
79 {
80 return;  //TODO: set error code
81 }
82 
83 for (int i0 = threadIdx.x; i0 < d0; i0 += 

Re: [PyCUDA] pipwin error with runpy.py

2017-01-29 Thread Andreas Kloeckner
"Slein, Ryan"  writes:
> I've spent a few days digging through forums without any luck so I figured 
> I'd post to the mailing list as per request of the forums. Any advice would 
> be greatly appreciated. I am new to python and cuda, and entirely 
> self-taught, so sorry in advanced for any gaps of knowledge on my part.
>
> I am trying to install pycuda but am getting hung up on one of the last 
> install steps, pipwin install pycuda. I keep getting an error in runpy.py 
> when trying to install the software through anaconda. BeautifulSoup tells me 
> it is an lxml file error (see attached cmd) in anaconda\lib\runpy.py for both 
> Python/Anaconda 2 and Python/Anaconda 3 (see attached code: Line 184 for 
> anaconda3 and Line 174 for anaconda2). I've tried to do what BeautifulSoup 
> stated but haven't succeeded, hopefully the solution is obvious to someone 
> with much more experience than myself.
>
> I've also tried building from means other than conda with no luck. I
> am open to try other build packages if you don't know of any conda
> work arounds. Some computer specs: Windows 10 Pro V1607 OS Build
> 14393.693 & Command Prompt Version 10.0.14393. Please let me know if
> you need any further information of my system.

The message you show appears to be a non-fatal warning and unrelated to
PyCUDA, which does not use BeatifulSoup. If you show a relevant error
message (bonus points for text format), we may be in a better position
to help.

Andreas

___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


[PyCUDA] pipwin error with runpy.py

2017-01-28 Thread Slein, Ryan
Hey everyone,

I've spent a few days digging through forums without any luck so I figured I'd 
post to the mailing list as per request of the forums. Any advice would be 
greatly appreciated. I am new to python and cuda, and entirely self-taught, so 
sorry in advanced for any gaps of knowledge on my part.

I am trying to install pycuda but am getting hung up on one of the last install 
steps, pipwin install pycuda. I keep getting an error in runpy.py when trying 
to install the software through anaconda. BeautifulSoup tells me it is an lxml 
file error (see attached cmd) in anaconda\lib\runpy.py for both Python/Anaconda 
2 and Python/Anaconda 3 (see attached code: Line 184 for anaconda3 and Line 174 
for anaconda2). I've tried to do what BeautifulSoup stated but haven't 
succeeded, hopefully the solution is obvious to someone with much more 
experience than myself.

I've also tried building from means other than conda with no luck. I am open to 
try other build packages if you don't know of any conda work arounds. Some 
computer specs: Windows 10 Pro V1607 OS Build 14393.693 & Command Prompt 
Version 10.0.14393. Please let me know if you need any further information of 
my system.

Best,
Ryan

___
PyCUDA mailing list
PyCUDA@tiker.net
https://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Installation Error

2016-01-20 Thread Sean Breckling
Cuda is definitely 64bit.


Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2

The command: $python -c 'import sys;print("%x" % sys.maxsize, sys.maxsize >
2**32)'
returns:
('7fff', True)

I'm not sure what else I could have running 32bit that would get in the way?

On Wed, Jan 20, 2016 at 10:03 AM, Andreas Kloeckner  wrote:

> Sean Breckling  writes:
>
> > Andreas,
> >
> > I've added those paths, and also added:
> >
> > /usr/local/cuda-7.5/targets/x86_64-linux/lib
> >
> > to LD_LIBRARY_PATH (in case that extra /l was a typo).
> >
> > The outcome hasn't changed.
> >
> > ImportError: libcurand.so.7.5: cannot open shared object file: No such
> file
> > or directory
>
> Smells like an architecture mismatch--did you install a 32-bit toolkit
> but are building on a 64-bit system?
>
> Andreas
>



-- 
Sean Breckling
Graduate Assistant, Department of Mathematics
University of Nevada - Las Vegas
CDC 704
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Installation Error

2016-01-20 Thread Sean Breckling
Here's the results. I'm not sure what to make of it, personally.

sean@sean-Hi-Fi-A85W:~/Downloads/pycuda/build/lib.linux-x86_64-2.7/pycuda$
ldd _driver.so
linux-vdso.so.1 =>  (0x7ffcfdb68000)
libcuda.so.1 => /usr/lib/x86_64-linux-gnu/libcuda.so.1 (0x7f6e820c8000)
libcurand.so.7.5 => /usr/local/cuda-7.5/lib64/libcurand.so.7.5
(0x7f6e7e86)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
(0x7f6e7e558000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x7f6e7e34)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x7f6e7e12)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f6e7dd58000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f6e7db5)
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f6e7d948000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f6e7d64)
/lib64/ld-linux-x86-64.so.2 (0x7f6e83438000)

Thannks again!

On Wed, Jan 20, 2016 at 12:31 PM, Andreas Kloeckner  wrote:

> Sean Breckling  writes:
>
> > Cuda is definitely 64bit.
> >
> >
> > Python 2.7.6 (default, Jun 22 2015, 17:58:13)
> > [GCC 4.8.2] on linux2
> >
> > The command: $python -c 'import sys;print("%x" % sys.maxsize,
> sys.maxsize >
> > 2**32)'
> > returns:
> > ('7fff', True)
> >
> > I'm not sure what else I could have running 32bit that would get in the
> way?
>
> Try running 'ldd' on PyCUDA's _driver.so and see what that says.
>
> Andreas
>



-- 
Sean Breckling
Graduate Assistant, Department of Mathematics
University of Nevada - Las Vegas
CDC 704
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] Installation Error

2016-01-19 Thread Sean Breckling
OS: Ubuntu 14.04
Cuda: 7.5
Python: 2.7


When I run ./configure.py the siteconf.py file produces:

BOOST_INC_DIR = []
BOOST_LIB_DIR = []
BOOST_COMPILER = 'gcc43'
USE_SHIPPED_BOOST = True
BOOST_PYTHON_LIBNAME = ['boost_python-py27']
BOOST_THREAD_LIBNAME = ['boost_thread']
CUDA_TRACE = False
CUDA_ROOT = '/usr/local/cuda-7.5'
CUDA_ENABLE_GL = False
CUDA_ENABLE_CURAND = True
CUDADRV_LIB_DIR = ['${CUDA_ROOT}/lib', '${CUDA_ROOT}/lib64',
'${CUDA_ROOT}/lib/stubs', '${CUDA_ROOT}/lib64/stubs']
CUDADRV_LIBNAME = ['cuda']
CUDART_LIB_DIR = ['${CUDA_ROOT}/lib', '${CUDA_ROOT}/lib64',
'${CUDA_ROOT}/lib/stubs', '${CUDA_ROOT}/lib64/stubs']
CUDART_LIBNAME = ['cudart']
CURAND_LIB_DIR = ['${CUDA_ROOT}/lib', '${CUDA_ROOT}/lib64',
'${CUDA_ROOT}/lib/stubs', '${CUDA_ROOT}/lib64/stubs']
CURAND_LIBNAME = ['curand']
CXXFLAGS = []
LDFLAGS = []

When I run "make" I get the complaint:

***
*** WARNING: nvcc not in path.
*** May need to set CUDA_INC_DIR for installation to succeed.
***

When I run $echo CUDA_INC_DIR I see:

/usr/local/cuda-7.5/bin

When I run $locate nvcc I see (lots of stuff, but it includes):
/usr/local/cuda-7.5/bin/nvcc



If I run "sudo make install" the egg installs without any further
complaints (That I can see) however, when I try to run a test script I see:

ImportError: libcurand.so.7.5: cannot open shared object file: No such file
or directory

--When I run: $locate libcurand.so.7.5 I see:
/usr/local/cuda-7.5/targets/x86_64-linux/lib/libcurand.so.7.5
/usr/local/cuda-7.5/targets/x86_64-linux/lib/libcurand.so.7.5.18

---

I do not see how to proceed with installation from here. Any help would be
greatly appreciated.

-- 
Sean Breckling
Graduate Assistant, Department of Mathematics
University of Nevada - Las Vegas
CDC 704
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Installation error with pycuda-2015.1.3

2015-10-05 Thread Cheung, Samson H. (ARC-TN)[Computer Sciences Corporation]
I believe the problem is the
   -Dboost=pycudaboost

I believe it is set to a wrong place. But the configure —help is not clear how 
to deal with this!
Thanks,

~SC

From: "Cheung, Samson H. (ARC-TN)[Computer Sciences Corporation]" 
<samson.h.che...@nasa.gov<mailto:samson.h.che...@nasa.gov>>
Date: Monday, October 5, 2015 at 1:07 PM
To: "pycuda@tiker.net<mailto:pycuda@tiker.net>" 
<pycuda@tiker.net<mailto:pycuda@tiker.net>>
Subject: Installation error with pycuda-2015.1.3

Hello,

I encounter the following error while I am installing PyCUDA (doing make).  The 
command I use is
%> python configure.py --boost-compiler=gcc-4.9.2

I also tried
%> python configure.py \
  --boost-inc-dir=/nasa/pkgsrc/2015Q2/include/boost \
  --boost-lib-dir=/nasa/pkgsrc/2015Q2/lib \
  --boost-python-libname=boost-python-1.58.0 \
  --boost-compiler=gcc-4.9.2



. . .  < the error > . . .
. . .
gcc -pthread -Wno-unused-result -pipe -I/usr/include 
-I/nasa/pkgsrc/2015Q2/include/db4 -I/nasa/pkgsrc/2015Q2/include 
-I/nasa/pkgsrc/2015Q2/include/ncurses -O3 -DNDEBUG -fPIC -DHAVE_CURAND=1 
-DBOOST_ALL_NO_LIB=1 -DPYGPU_PYCUDA=1 
-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTHON_SOURCE=1 
-Dboost=pycudaboost -DBOOST_THREAD_BUILD_DLL=1 -DPYGPU_PACKAGE=pycuda 
-DBOOST_THREAD_DONT_USE_CHRONO=1 -Isrc/cpp -Ibpl-subset/bpl_subset 
-I/nasa/cuda/7.0/include 
-I/home3/old_home3/scheung/opt/python3.4.3/lib/python3.4/site-packages/numpy/core/include
 
-I/home3/old_home3/scheung/opt/python3.4.3/lib/python3.4/site-packages/numpy/core/include
 -I/home3/old_home3/scheung/opt/python3.4.3/include/python3.4 -c 
bpl-subset/bpl_subset/libs/system/src/error_code.cpp -o 
build/temp.linux-x86_64-3.4/bpl-subset/bpl_subset/libs/system/src/error_code.o
gcc -pthread -Wno-unused-result -pipe -I/usr/include 
-I/nasa/pkgsrc/2015Q2/include/db4 -I/nasa/pkgsrc/2015Q2/include 
-I/nasa/pkgsrc/2015Q2/include/ncurses -O3 -DNDEBUG -fPIC -DHAVE_CURAND=1 
-DBOOST_ALL_NO_LIB=1 -DPYGPU_PYCUDA=1 
-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -DBOOST_PYTHON_SOURCE=1 
-Dboost=pycudaboost -DBOOST_THREAD_BUILD_DLL=1 -DPYGPU_PACKAGE=pycuda 
-DBOOST_THREAD_DONT_USE_CHRONO=1 -Isrc/cpp -Ibpl-subset/bpl_subset 
-I/nasa/cuda/7.0/include 
-I/home3/old_home3/scheung/opt/python3.4.3/lib/python3.4/site-packages/numpy/core/include
 
-I/home3/old_home3/scheung/opt/python3.4.3/lib/python3.4/site-packages/numpy/core/include
 -I/home3/old_home3/scheung/opt/python3.4.3/include/python3.4 -c 
bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp -o 
build/temp.linux-x86_64-3.4/bpl-subset/bpl_subset/libs/thread/src/pthread/once.o
In file included from /nasa/pkgsrc/2015Q2/include/boost/atomic/atomic.hpp:19:0,
 from /nasa/pkgsrc/2015Q2/include/boost/atomic.hpp:12,
 from 
/nasa/pkgsrc/2015Q2/include/boost/thread/pthread/once_atomic.hpp:20,
 from /nasa/pkgsrc/2015Q2/include/boost/thread/once.hpp:20,
 from bpl-subset/bpl_subset/libs/thread/src/pthread/once.cpp:7:
/nasa/pkgsrc/2015Q2/include/boost/atomic/capabilities.hpp:22:63: fatal error: 
pycudaboost/atomic/detail/caps_gcc_atomic.hpp: No such file or directory
 #include BOOST_ATOMIC_DETAIL_HEADER(boost/atomic/detail/caps_)
   ^
compilation terminated.
error: command 'gcc' failed with exit status 1
make: *** [all] Error 1


I would be graceful if someone can give me some hint!
Thanks,

~Samson

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] Installation error on OSX 10.9.5 with CUDA 6.5

2014-10-20 Thread Guillaume Dumas
Hi!

I am struggling with the installation of pycuda for hours, trying almost
every pieces of advices I have found on the internet unsuccesfully...

Basically, I am blocked with an error when I import the module as follow:

In [1]: import pycuda.driver as cuda
---
ImportError   Traceback (most recent call last)
ipython-input-1-b2dd91e7bf60 in module()
 1 import pycuda.driver as cuda

/Users/kwisatz/Downloads/pycuda-2014.1/pycuda/driver.py in module()
  1 try:
 2 from pycuda._driver import *  # noqa
  3 except ImportError, e:
  4 if _v2 in str(e):
  5 from warnings import warn

ImportError: No module named _driver

I follow the instructions here
http://wiki.tiker.net/PyCuda/Installation/Mac#Installing_PyCUDA_on_Mac_OS_X_10.9_Mavericks_with_CUDA_6.0
but
I feat the *siteconf.py *file should be adapted for the last version of
CUDA (i.e. 6.5, 64bit).

During the building of the module, I got some warnings:
http://pastebin.com/mMVWs0XK

Thanks for your help,

Guillaume
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Installation error on OSX 10.9.5 with CUDA 6.5

2014-10-20 Thread Ashwin Srinath
If I recall correctly, you shouldn't try importing pycuda.driver from the
same directory that you installed pycuda. Try `cd`ing into another
directory and then importing?


On Mon, Oct 20, 2014 at 3:15 PM, Guillaume Dumas d...@introspection.eu
wrote:

 Hi!

 I am struggling with the installation of pycuda for hours, trying almost
 every pieces of advices I have found on the internet unsuccesfully...

 Basically, I am blocked with an error when I import the module as follow:

 In [1]: import pycuda.driver as cuda
 ---
 ImportError   Traceback (most recent call last)
 ipython-input-1-b2dd91e7bf60 in module()
  1 import pycuda.driver as cuda

 /Users/kwisatz/Downloads/pycuda-2014.1/pycuda/driver.py in module()
   1 try:
  2 from pycuda._driver import *  # noqa
   3 except ImportError, e:
   4 if _v2 in str(e):
   5 from warnings import warn

 ImportError: No module named _driver

 I follow the instructions here
 http://wiki.tiker.net/PyCuda/Installation/Mac#Installing_PyCUDA_on_Mac_OS_X_10.9_Mavericks_with_CUDA_6.0
  but
 I feat the *siteconf.py *file should be adapted for the last version of
 CUDA (i.e. 6.5, 64bit).

 During the building of the module, I got some warnings:
 http://pastebin.com/mMVWs0XK

 Thanks for your help,

 Guillaume

 ___
 PyCUDA mailing list
 PyCUDA@tiker.net
 http://lists.tiker.net/listinfo/pycuda


___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] Assertion Error

2014-02-10 Thread Jayanth Channagiri
Dear all

I am having problems with slicing a 3D array into 2D array and then sending it 
to GPU.
For example, 

array1 = ones((128,128,128))
array1_gpu = gpuarray.to_gpu(array1) #no problem in sending it to GPU

But if I convert it to a 2D array like, 

array1_slice = array1[:,:,1]
array1_gpu = gpuarray.to_gpu(array1_slice) 

It gives me the following error:


array1_gpu = gpuarray.to_gpu(array1_slice)
  File /usr/lib/python2.7/dist-packages/pycuda/gpuarray.py, line 841, in 
to_gpu
result.set(ary)
  File /usr/lib/python2.7/dist-packages/pycuda/gpuarray.py, line 219, in set
assert self.flags.forc
AssertionError

I am unable to understand the error. Can anyone please explain me why is it not 
possible this way and a solution?


Thank you very much
Jayanth
  ___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Assertion Error

2014-02-10 Thread Andreas Kloeckner
Jayanth Channagiri cv.jaya...@hotmail.com writes:

 Dear all

 I am having problems with slicing a 3D array into 2D array and then sending 
 it to GPU.
 For example, 

 array1 = ones((128,128,128))
 array1_gpu = gpuarray.to_gpu(array1) #no problem in sending it to GPU

 But if I convert it to a 2D array like, 

 array1_slice = array1[:,:,1]
 array1_gpu = gpuarray.to_gpu(array1_slice) 

 It gives me the following error:


 array1_gpu = gpuarray.to_gpu(array1_slice)
   File /usr/lib/python2.7/dist-packages/pycuda/gpuarray.py, line 841, in 
 to_gpu
 result.set(ary)
   File /usr/lib/python2.7/dist-packages/pycuda/gpuarray.py, line 219, in set
 assert self.flags.forc
 AssertionError

 I am unable to understand the error. Can anyone please explain me why is it 
 not possible this way and a solution?

Copy the array before transferring. You can't copy sliced arrays. (yet,
patch welcome)

Andreas


pgpGTd2Rfot6h.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] string error handling in compiler.py

2013-12-22 Thread Andreas Kloeckner
Hi Alex,

Alex Nitz alex.n...@ligo.org writes:
 I've noticed that a change made several months ago to the string error
 handling isn't compatible with versions of python earlier than 2.7.

 The following fails on python versions  2.7.

 s = test string
 s.decode(UTF8, error='replace')

 as keywords were not supported at the time. I've attached a simple patch
 that makes these positional arguments.

 as in

 s.decode(UTF8, replace)

Applied. Thanks for the patch.

Andreas


pgpkMpDaxJWaG.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] string error handling in compiler.py

2013-12-16 Thread Alex Nitz
Hello,

I've noticed that a change made several months ago to the string error
handling isn't compatible with versions of python earlier than 2.7.

The following fails on python versions  2.7.

s = test string
s.decode(UTF8, error='replace')

as keywords were not supported at the time. I've attached a simple patch
that makes these positional arguments.

as in

s.decode(UTF8, replace)

Thanks,

Alex Nitz
From 18c698b2f5b1a8aac4c4679e123a52abf17c714e Mon Sep 17 00:00:00 2001
From: Alexander Harvey Nitz ahn...@syr.edu
Date: Mon, 16 Dec 2013 04:05:02 -0500
Subject: [PATCH] use positional argument for string handling scheme, (keyword
 not supported in python=2.6)

---
 pycuda/compiler.py |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/pycuda/compiler.py b/pycuda/compiler.py
index 9d8cf01..ace4860 100644
--- a/pycuda/compiler.py
+++ b/pycuda/compiler.py
@@ -17,7 +17,7 @@ def get_nvcc_version(nvcc):
 warn(NVCC version could not be determined.)
 stdout = nvcc unknown version
 
-return stdout.decode(utf-8, errors=replace)
+return stdout.decode(utf-8, replace)
 
 
 def _new_md5():
@@ -56,11 +56,11 @@ def preprocess_source(source, options, nvcc):
 from pycuda.driver import CompileError
 raise CompileError(nvcc preprocessing of %s failed with ridiculously 
 small code output - likely unsupported compiler. % source_path,
-cmdline, stderr=stderr.decode(utf-8, errors=replace))
+cmdline, stderr=stderr.decode(utf-8, replace))
 
 unlink(source_path)
 
-return stdout.decode(utf-8, errors=replace)
+return stdout.decode(utf-8, replace)
 
 
 def compile_plain(source, options, keep, nvcc, cache_dir):
@@ -128,18 +128,18 @@ def compile_plain(source, options, keep, nvcc, cache_dir):
 encountered an error)
 from pycuda.driver import CompileError
 raise CompileError(nvcc compilation of %s failed % cu_file_path,
-cmdline, stdout=stdout.decode(utf-8, errors=replace),
-stderr=stderr.decode(utf-8, errors=replace))
+cmdline, stdout=stdout.decode(utf-8, replace),
+stderr=stderr.decode(utf-8, replace))
 
 if stdout or stderr:
-lcase_err_text = (stdout+stderr).decode(utf-8, errors=replace).lower()
+lcase_err_text = (stdout+stderr).decode(utf-8, replace).lower()
 from warnings import warn
 if demoted in lcase_err_text or demoting in lcase_err_text:
 warn(nvcc said it demoted types in source code it 
 compiled--this is likely not what you want.,
 stacklevel=4)
 warn(The CUDA compiler succeeded, but said the following:\n
-+ (stdout+stderr).decode(utf-8, errors=replace), stacklevel=4)
++ (stdout+stderr).decode(utf-8, replace), stacklevel=4)
 
 cubin = cubin_f.read()
 cubin_f.close()
-- 
1.7.10.rc4.209.g0677f

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Memory error when running program more than once

2012-05-30 Thread ErisDyschordia
Adding the free held memory command to the end of my program solved the
problem, I clearly don't have a great grasp on how memory is stored. Thanks!

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/PyCUDA-Memory-error-when-running-program-more-than-once-tp7574634p7574665.html
Sent from the PyCuda mailing list archive at Nabble.com.

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] Memory error when running program more than once

2012-05-27 Thread Andreas Kloeckner
On Thu, 24 May 2012 09:57:38 -0700 (PDT), ErisDyschordia ki4...@gmail.com 
wrote:
 I have a program that I am running written in PyCuda, that works correctly
 the first time I run it. Because I am using a lot of fast little gpuarray
 functions, on a TON of different arrays, every time I finish with one I
 manually remove it from the memory using array.gpudata.free() so that I
 immediately have enough room to do the next array. I do this every time. So
 every single array is manually freed. The program will complete
 successfully, but if I try to run it a second time, the moment I try to move
 anything over to the GPU it says CudaMalloc fail: out of memory.
 
 Any idea what could be causing this? the only way I have found to fix it,
 is to restart the computer between runs. 

Once the first run finishes, can you still find the program using 'ps
aux' (I'm assuming you're on Linux?)? If not, this is very likely a
CUDA bug.

Further, CudaMalloc fail indicates that something besides PyCUDA is
complaining. PyCUDA does not use cudaMalloc. (It uses cuMalloc--welcome
to the wonderful world of CUDA.)

Also, if, when you said 'program', you actually meant two things that
happen within the same (OS) process, and if you're using memory pools,
then what you're reporting has every right to happen. A memory pool,
unless told otherwise, *will* hold on to all the device memory that was
once allocated through it.

http://documen.tician.de/pycuda/util.html#pycuda.tools.DeviceMemoryPool.free_held

HTH,
Andreas


pgpGtsDd3GadS.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-25 Thread maxrider11
It is quite weird, that i searched on google '/usr/bin/ld: cannot find
-lcuda' , but it gave me only links to the thread on forums i made, and
nothing else. While this thread for particular problem which people with new
nvidia drivers are having was not shown: http://
http://forums.nvidia.com/index.php?showtopic=224718st=0#entry1413660 
http://forums.nvidia.com/index.php?showtopic=224718st=0#entry1413660 .

After looking for lots of info regrarding pycuda installtion but no
solution, I thought let's look in cuda. So, the first forum which anyone
will choose is NVIDIA. I looked there and got a thread which address same
problem. I posted link above.

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-usr-bin-ld-cannot-find-lcuda-tp7481143p7574636.html
Sent from the PyCuda mailing list archive at Nabble.com.

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-10 Thread Andreas Kloeckner
Looks like you've installed a 32-bit CUDA on a 64-bit machine.

Andreas

On Thu, 10 May 2012 15:32:54 -0700 (PDT), maxrider11 ssethi...@gmail.com 
wrote:
 py.so was py27.so which i edited later.  
 
 output of failing command: 
 
 *...@ubuntu:~/pycuda-2011.2.2$ make -j 4*
 ctags -R src || true
 /usr/bin/python setup.py build
 running build
 running build_py
 running build_ext
 building '_driver' extension
 gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
 -I/usr/local/cuda/include
 -I/usr/lib/python2.7/dist-packages/numpy/core/include
 -I/usr/include/python2.7 -c src/cpp/cuda.cpp -o
 build/temp.linux-x86_64-2.7/src/cpp/cuda.o
 gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
 -I/usr/local/cuda/include
 -I/usr/lib/python2.7/dist-packages/numpy/core/include
 -I/usr/include/python2.7 -c src/cpp/bitlog.cpp -o
 build/temp.linux-x86_64-2.7/src/cpp/bitlog.o
 gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
 -I/usr/local/cuda/include
 -I/usr/lib/python2.7/dist-packages/numpy/core/include
 -I/usr/include/python2.7 -c src/wrapper/wrap_cudadrv.cpp -o
 build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o
 src/wrapper/wrap_cudadrv.cpp: In function âvoid init_module__driver()â:
 src/wrapper/wrap_cudadrv.cpp:508:5: warning: deprecated conversion from
 string constant to âchar*â [-Wwrite-strings]
 src/wrapper/wrap_cudadrv.cpp:512:5: warning: deprecated conversion from
 string constant to âchar*â [-Wwrite-strings]
 src/wrapper/wrap_cudadrv.cpp:513:5: warning: deprecated conversion from
 string constant to âchar*â [-Wwrite-strings]
 src/wrapper/wrap_cudadrv.cpp:514:5: warning: deprecated conversion from
 string constant to âchar*â [-Wwrite-strings]
 src/wrapper/wrap_cudadrv.cpp:515:5: warning: deprecated conversion from
 string constant to âchar*â [-Wwrite-strings]
 gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
 -I/usr/local/cuda/include
 -I/usr/lib/python2.7/dist-packages/numpy/core/include
 -I/usr/include/python2.7 -c src/wrapper/mempool.cpp -o
 build/temp.linux-x86_64-2.7/src/wrapper/mempool.o
 gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
 -I/usr/local/cuda/include
 -I/usr/lib/python2.7/dist-packages/numpy/core/include
 -I/usr/include/python2.7 -c src/wrapper/wrap_curand.cpp -o
 build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o
 g++ -pthread -shared -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions
 -Wl,-z,relro build/temp.linux-x86_64-2.7/src/cpp/cuda.o
 build/temp.linux-x86_64-2.7/src/cpp/bitlog.o
 build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o
 build/temp.linux-x86_64-2.7/src/wrapper/mempool.o
 build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o -L/usr/local/cuda/lib
 -L/usr/local/cuda/lib64 -lboost_python-py27 -lboost_thread-mt -lcuda
 -lcurand -o build/lib.linux-x86_64-2.7/pycuda/_driver.so
 */usr/bin/ld: cannot find -lcuda
 /usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when
 searching for -lcurand
 collect2: ld returned 1 exit status
 error: command 'g++' failed with exit status 1
 make: *** [all] Error 1
 
 --
 View this message in context: 
 http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7548564.html
 Sent from the PyCuda mailing list archive at Nabble.com.
 
 ___
 PyCUDA mailing list
 PyCUDA@tiker.net
 http://lists.tiker.net/listinfo/pycuda



pgpYXh7wrFT8J.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-10 Thread maxrider11
ohh.

@ubuntu:/usr/local/lib$ file /usr/local/lib/libcuda.so
/usr/local/lib/libcuda.so: ERROR: cannot open `/usr/local/lib/libcuda.so'
(No such file or directory)

Then I tried this:
..@ubuntu:/usr/local/cuda/lib$ file /usr/local/cuda/lib/libcurand.so
/usr/local/cuda/lib/libcurand.so: symbolic link to `libcurand.so.4'

..@ubuntu:/usr/local/cuda/lib$ file libcurand.so.4
libcurand.so.4: symbolic link to `libcurand.so.4.1.28'

..@ubuntu:/usr/local/cuda/lib$ file libcurand.so.4.1.28
libcurand.so.4.1.28: ELF *32-bit *LSB shared object, Intel 80386, version 1
(SYSV), dynamically linked,
BuildID[sha1]=0xca8aacf0fff3da60e113fb2ede0e05a8ca3bd576, stripped

does it help ?


___
PyCUDA mailing list
PyCUDA@
http://lists.tiker.net/listinfo/pycuda



--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7548995.html
Sent from the PyCuda mailing list archive at Nabble.com.

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-10 Thread Andreas Kloeckner
On Thu, 10 May 2012 19:59:19 -0700 (PDT), maxrider11 ssethi...@gmail.com 
wrote:
 ohh.

Well, is there any libcuda.so* on your computer?

Andreas


pgp1nJjq2uvgG.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-09 Thread maxrider11
Hi, 
Sorry, I am late on followup. I am beginner and wandered too much, and
fiddled a lot. I tried your advice, still same problem. This is what i did:
*cuda installed *in /usr/local/cuda, it's version is 4.0.

*calling configure.py *like this: 
$ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib
--boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib
--boost-python-libname=boost_python-mt-py27
--boost-thread-libname=boost_thread-mt 


 I see these files in /usr/lib: libboost_python-py27.so and
libboost_python-mt-py.so. so which to use ?
and shall i add .so extension with their name when i call  ./configure.py
?

$ echo CUDA_ROOT   prints usr/local/cuda/, then also it says /usr/bin/ld:
-lcuda not found. I don't see 'ld' directory in /usr/bin.

I appreciate your help !

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7545342.html
Sent from the PyCuda mailing list archive at Nabble.com.

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-05-09 Thread Andreas Kloeckner
On Wed, 9 May 2012 20:39:39 -0700 (PDT), maxrider11 ssethi...@gmail.com wrote:
 Hi, 
 Sorry, I am late on followup. I am beginner and wandered too much, and
 fiddled a lot. I tried your advice, still same problem. This is what i did:
 *cuda installed *in /usr/local/cuda, it's version is 4.0.
 
 *calling configure.py *like this: 
 $ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib
 --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib
 --boost-python-libname=boost_python-mt-py27
 --boost-thread-libname=boost_thread-mt 
 
  I see these files in /usr/lib: libboost_python-py27.so and
 libboost_python-mt-py.so. so which to use ?

Not sure what -py.so is. Use -py27.

 and shall i add .so extension with their name when i call  ./configure.py
 ?

No.

 
 $ echo CUDA_ROOT   prints usr/local/cuda/, then also it says /usr/bin/ld:
 -lcuda not found. I don't see 'ld' directory in /usr/bin.
 
 I appreciate your help !

'ld' is the linker.

Can you please post the output of the failing command?

Andreas



pgpjby0XPCY4y.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] installing pycuda 2011.2.2: error - cannot find -lboost_python-mt

2012-04-19 Thread maxrider11
pycuda 2011.2.2, ubuntu 11.10, gcc 4.4. python 2.7. I am tired because every
next step in it bring some error, and I am trying it for 2-3 days.

 i am getting this error on running ..pycuda-2011.2.2$ make -j 4
/usr/bin/ld: cannot find -lboost_python-mt

/usr/bin/ld: cannot find -lcuda

/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when
searching for -lcurand

 I tried this but its not helping:
$ sudo ln -s /usr/lib/libboost_python-mt-py26 /usr/lib/libboost_python-mt 

 Additional information: 
I don't see ld directory in /usr/bin. This file libboost_python-mt-py26 is
present in usr/lib. Also, I installed pycuda even after the error above,
then I got error in  import pycuda.driver as cuda : 
 from pycuda._driver import *
ImportError: No module named _driver

Can we fix it without solving the first error problem ? 
Any help is appreciated, thanks

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7481143.html
Sent from the PyCuda mailing list archive at Nabble.com.

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] pycuda installation error on centos 5.6

2011-07-22 Thread Rekhesh Mohan

Hi people..  Greetings! :)

Anyone got pycuda installed on centos 5.6? All my attempts with various 
combinations of default gcc, gcc44, default python, and python 2.6 ends 
up with the following error during make:

g++ -pthread -shared build/temp.linux-x86_64-2.6/src/cpp/cuda.o 
build/temp.linux
-x86_64-2.6/src/cpp/bitlog.o build/temp.linux-
x86_64-2.6/src/wrapper/wrap_cudadr
v.o build/temp.linux-x86_64-2.6/src/wrapper/mempool.o build/temp.linux-
x86_64-2.
6/bpl-subset/bpl_subset/libs/python/src/object/enum.o build/temp.linux-
x86_64-2.
6/bpl-subset/bpl_subset/libs/python/src/object/stl_iterator.o 
build/temp.linux-x
86_64-2.6/bpl-subset/bpl_subset/libs/python/src/object/life_support.o 
build/temp
.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/object/function.o build/
temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/object/iterator.o bu
ild/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/object/function_
doc_signature.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/sr
c/object/inheritance.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/py
thon/src/object/class.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/p
ython/src/object/pickle_support.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_sub
set/libs/python/src/converter/arg_to_python_base.o build/temp.linux-
x86_64-2.6/b
pl-subset/bpl_subset/libs/python/src/converter/from_python.o 
build/temp.linux-x8
6_64-2.6/bpl-
subset/bpl_subset/libs/python/src/converter/builtin_converters.o bu
ild/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/converter/type_i
d.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/converter/
registry.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/lon
g.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/import.o b
uild/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/str.o 
build/tem
p.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/exec.o 
build/temp.linux
-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/object_operators.o 
build/temp.
linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/wrapper.o 
build/temp.linu
x-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/tuple.o 
build/temp.linux-x86_
64-2.6/bpl-subset/bpl_subset/libs/python/src/slice.o build/temp.linux-
x86_64-2.6
/bpl-subset/bpl_subset/libs/python/src/errors.o build/temp.linux-
x86_64-2.6/bpl-
subset/bpl_subset/libs/python/src/module.o build/temp.linux-
x86_64-2.6/bpl-subse
t/bpl_subset/libs/python/src/numeric.o build/temp.linux-x86_64-2.6/bpl-
subset/bp
l_subset/libs/python/src/list.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subse
t/libs/python/src/object_protocol.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_s
ubset/libs/python/src/dict.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subset/l
ibs/smart_ptr/src/sp_collector.o build/temp.linux-x86_64-2.6/bpl-
subset/bpl_subs
et/libs/smart_ptr/src/sp_debug_hooks.o build/temp.linux-x86_64-2.6/bpl-
subset/bp
l_subset/libs/thread/src/pthread/once.o build/temp.linux-x86_64-2.6/bpl-
subset/b
pl_subset/libs/thread/src/pthread/thread.o build/temp.linux-
x86_64-2.6/src/wrapp
er/wrap_curand.o -L/usr/lib64 -L/usr/lib64 -lcuda -lcurand -lpython2.6 -
o build/
lib.linux-x86_64-2.6/pycuda/_driver.so
/usr/bin/ld: cannot find -lcurand
collect2: ld returned 1 exit status

By the way, I have set CXXFLAGS = ['-DBOOST_PYTHON_NO_PY_SIGNATURES'] 
in siteconf.py, and I have tried with  pycuda-2011.1.2 (latest download 
available on website) as well as a clone from git. 

Any suggestions? Thanks in anticipation..

--R

___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


Re: [PyCUDA] PyCUDA0.94 error building against CUDA3.2RC

2010-09-19 Thread Andreas Kloeckner
Hi Garrett, all,

On Wed, 15 Sep 2010 12:21:09 -0400, GARRETT B WRIGHT 
garrett.wri...@temple.edu wrote:
 I just downloaded Nvidia's most current developer release of CUDA3.2
 toolkit and devdriver260.  They installed and I have built/tested
 their SDK examples on this Ubuntu10.04 box.  When I attempt to build a
 fresh PyCUDA, I get unfamiliar errors causing the build to fail:

Fixed in git.

Andreas


pgpsvJTtJnyql.pgp
Description: PGP signature
___
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda


[PyCUDA] PyCUDA0.94 error building against CUDA3.2RC

2010-09-15 Thread GARRETT B WRIGHT
Hello all,

I just downloaded Nvidia's most current developer release of CUDA3.2
toolkit and devdriver260.  They installed and I have built/tested
their SDK examples on this Ubuntu10.04 box.  When I attempt to build a
fresh PyCUDA, I get unfamiliar errors causing the build to fail:

bpl-subset/bpl_subset /boost/  python .hpp
*** Error occurred in plausibility checking for path of Boost Python library.
*** Error occurred in plausibility checking for path of Boost Thread library.
/usr/local/cuda /bin/  nvcc
/usr/local/cuda/include /  cuda .h
/usr/lib / lib cuda .so
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
creating build/lib.linux-x86_64-2.6/pycuda
copying pycuda/compiler.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/autoinit.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/curandom.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/gpuarray.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/__init__.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/elementwise.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/driver.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/reduction.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/tools.py - build/lib.linux-x86_64-2.6/pycuda
copying pycuda/cumath.py - build/lib.linux-x86_64-2.6/pycuda
creating build/lib.linux-x86_64-2.6/pycuda/gl
copying pycuda/gl/autoinit.py - build/lib.linux-x86_64-2.6/pycuda/gl
copying pycuda/gl/__init__.py - build/lib.linux-x86_64-2.6/pycuda/gl
creating build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/pkt_build.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/inner.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/coordinate.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/__init__.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/operator.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/cg.py - build/lib.linux-x86_64-2.6/pycuda/sparse
copying pycuda/sparse/packeted.py - build/lib.linux-x86_64-2.6/pycuda/sparse
running build_ext
building '_driver' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/src
creating build/temp.linux-x86_64-2.6/src/cpp
creating build/temp.linux-x86_64-2.6/src/wrapper
creating build/temp.linux-x86_64-2.6/bpl-subset
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src
creating 
build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/object
creating 
build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/python/src/converter
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/smart_ptr
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/smart_ptr/src
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/thread
creating build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/thread/src
creating 
build/temp.linux-x86_64-2.6/bpl-subset/bpl_subset/libs/thread/src/pthread
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC
-DBOOST_MULTI_INDEX_DISABLE_SERIALIZATION=1 -Isrc/cpp
-Ibpl-subset/bpl_subset -I/usr/local/cuda/include
-I/usr/lib/python2.6/dist-packages/numpy/core/include
-I/usr/include/python2.6 -c src/cpp/cuda.cpp -o
build/temp.linux-x86_64-2.6/src/cpp/cuda.o
In file included from
bpl-subset/bpl_subset/boost/python/detail/wrap_python.hpp:50,
 from bpl-subset/bpl_subset/boost/python/detail/prefix.hpp:13,
 from bpl-subset/bpl_subset/boost/python/args.hpp:8,
 from bpl-subset/bpl_subset/boost/python.hpp:11,
 from src/cpp/cuda.hpp:20,
 from src/cpp/cuda.cpp:1:
/usr/include/python2.6/pyconfig.h:1031:1: warning: _POSIX_C_SOURCE redefined
In file included from /usr/include/stdlib.h:25,
 from /usr/local/cuda/include/cuda.h:39,
 from src/cpp/cuda.hpp:12,
 from src/cpp/cuda.cpp:1:
/usr/include/features.h:158:1: warning: this is the location of the
previous definition
In file included from
bpl-subset/bpl_subset/boost/python/detail/wrap_python.hpp:50,
 from bpl-subset/bpl_subset/boost/python/detail/prefix.hpp:13,
 from bpl-subset/bpl_subset/boost/python/args.hpp:8,
 from bpl-subset/bpl_subset/boost/python.hpp:11,
 from src/cpp/cuda.hpp:20,
 from src/cpp/cuda.cpp:1:
/usr/include/python2.6/pyconfig.h:1040:1: warning: _XOPEN_SOURCE redefined
In file included from /usr/include/stdlib.h:25,
 from /usr/local/cuda/include/cuda.h:39,
 from src/cpp/cuda.hpp:12,
 from src/cpp/cuda.cpp:1:
/usr/include/features.h:160:1: warning: this is the location of the
previous definition
In file included from 

Re: [PyCUDA] complementary error function erfc

2010-03-15 Thread Andreas Klöckner
On Sonntag 14 März 2010, Faisal Moledina wrote:
 Hello PyCUDA list,
 
 I'm just starting out with PyCUDA and have not used much more than
 gpuarray and cumath. In fact, I have yet to program my own CUDA
 kernel. I'm wondering if there is a built-in erfc method for a
 gpuarray. If PyCUDA doesn't have one built-in, how would I implement a
 CUDA kernel for erfc? Prior to PyCUDA, I was using scipy.special.erfc
 on NumPy arrays.

You could use to pycuda.elementwise to shield you from any actual CUDA
programming--and use [1] as a (high-quality) implementation guideline.
Maybe you could even tweak that header directly (add a few __device__
specs).

[1]
https://svn.boost.org/trac/boost/browser/trunk/boost/math/special_functions/erf.hpp

Andreas


signature.asc
Description: This is a digitally signed message part.
___
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net


Re: [PyCUDA] complementary error function erfc

2010-03-15 Thread Faisal Moledina
On Mon, Mar 15, 2010 at 10:16 AM, Andreas Klöckner
li...@informa.tiker.net wrote:
 On Sonntag 14 März 2010, Faisal Moledina wrote:
 Hello PyCUDA list,

 I'm just starting out with PyCUDA and have not used much more than
 gpuarray and cumath. In fact, I have yet to program my own CUDA
 kernel. I'm wondering if there is a built-in erfc method for a
 gpuarray. If PyCUDA doesn't have one built-in, how would I implement a
 CUDA kernel for erfc? Prior to PyCUDA, I was using scipy.special.erfc
 on NumPy arrays.

 You could use to pycuda.elementwise to shield you from any actual CUDA
 programming--and use [1] as a (high-quality) implementation guideline.
 Maybe you could even tweak that header directly (add a few __device__
 specs).

 [1]
 https://svn.boost.org/trac/boost/browser/trunk/boost/math/special_functions/erf.hpp

 Andreas


Hello Andreas,

I just discovered elementwise late last night. Very cool stuff! I
ended up using the erfcf() function (found in the CUDA Toolkit
Programming Guide) for single precision. Thanks.

Faisal

___
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net


[PyCUDA] complementary error function erfc

2010-03-14 Thread Faisal Moledina
Hello PyCUDA list,

I'm just starting out with PyCUDA and have not used much more than
gpuarray and cumath. In fact, I have yet to program my own CUDA
kernel. I'm wondering if there is a built-in erfc method for a
gpuarray. If PyCUDA doesn't have one built-in, how would I implement a
CUDA kernel for erfc? Prior to PyCUDA, I was using scipy.special.erfc
on NumPy arrays.

Thanks in advance!

Faisal

___
PyCUDA mailing list
pyc...@host304.hostmonster.com
http://host304.hostmonster.com/mailman/listinfo/pycuda_tiker.net


Re: [PyCUDA] pycuda make error

2010-02-15 Thread Nicolas Pinto
 For what it's worth, when I installed PyOpenCL I was unable to get
 Boost to link against the correct python (even after manually
 modifying the Darwin target information in the Boost distribution),
 but because 2.6.1 and 2.6.4 are API compatible I was able to use
 install_name_tool to relink it against the correct one after it had
 installed.

Thanks Matthew, this helped me installed PyCUDA on my Snow Leopard
with boost-1.42.

I updated the wiki here:
http://wiki.tiker.net/PyCuda/Installation/Mac#Fatal_Python_error:_Interpreter_not_initialized_.28version_mismatch.3F.29

Cheers,

N


 -Matt≈

 On Wed, Nov 4, 2009 at 5:08 AM, Dwight Bell dbe...@yahoo.com wrote:
 Thanks for the tip, otool does show that my Boost library is using 2.6.1.  I
 had tried to redirect the System Python to the 2.6.4 version and rebuild
 Boost, but Boost is still using 2.6.1.
 Thanks,
 ... Dwight

 
 From: Randy Heiland heil...@indiana.edu
 To: Dwight Bell dbe...@yahoo.com
 Cc: pycuda@tiker.net pycuda@tiker.net
 Sent: Wed, November 4, 2009 5:26:11 AM
 Subject: Re: [PyCUDA] pycuda make error

 I'm guessing you've mixed different versions of Python in your build
 process.  E.g. you say you're running 2.6.4, yet the default System Python
 for OSX 10.6.1 is 2.6.1 I think.  One thing you might check is the version
 of Python that was used for your Boost:

 % otool -L libboost_python.dylib

 And of course another thing to check is your sys.path to see what all it
 knows about:
 import sys
 sys.path
 ...

 hth, Randy

 On Nov 3, 2009, at 10:07 PM, Dwight Bell wrote:

 Thanks for the help, I was able to get through the make and setup
 process without errors.

 When I tried to test with python test_driver.py I got this message:

 Fatal Python error: Interpreter not initialized (version mismatch?)
 Abort trap

 and python crashed.

 Any ideas on how to determine what is causing this problem?  I'm
 running python 2.6.4 on MacOSX 10.6.1

 Thanks,
 ... Dwight

 On Nov 3, 2009, at 8:43 AM, Andreas Klöckner wrote:

 Hey Dwight,

 I've written a whole Wiki page about this stuff, here:
 http://wiki.tiker.net/DistributeVsSetuptools

 I'll link it from the FAQ.

 HTH,
 Andreas

 On Montag 02 November 2009, Dwight Bell wrote:
 I'm trying to install pycuda on Max OS X 10.6.1 and got the following
 error:

 dbmacpro:make -j 4
 ctags -R src || true
 ctags: illegal option -- R
 usage: ctags [-BFadtuwvx] [-f tagsfile] file ...
 /Library/Frameworks/Python.framework/Versions/2.6/Resources/
 Python.app/
 Contents/MacOS/Python setup.py build
 /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module
 pkg_resources was already imported from /Users/dbelll/src/
 pycuda-0.93/
 pkg_resources.pyc, but /Library/Frameworks/Python.framework/Versions/
 2.6/lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg is being
 added to sys.path
  import pkg_resources
 /Users/dbelll/src/pycuda-0.93/ez_setup.py:93: UserWarning: Module
 site
 was already imported from /Library/Frameworks/Python.framework/
 Versions/2.6/lib/python2.6/site.pyc, but /Library/Frameworks/
 Python.framework/Versions/2.6/lib/python2.6/site-packages/
 distribute-0.6.8-py2.6.egg is being added to sys.path
  import pkg_resources
 /Users/dbelll/local/include/boost-1_39 /boost/  python .hpp
 /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .so
 /Users/dbelll/local/lib / lib boost_python-xgcc40-mt .dylib
 /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .so
 /Users/dbelll/local/lib / lib boost_thread-xgcc40-mt .dylib
 /usr/local/cuda /bin/  nvcc
 /usr/local/cuda/include /  cuda .h
 /usr/local/cuda/lib / lib cuda .so
 /usr/local/cuda/lib / lib cuda .dylib
 running build
 running build_py
 running build_ext

 --
 Sorry, your build failed. Try rerunning configure with different
 options.

 --
 Traceback (most recent call last):
  File setup.py, line 325, in module
    main()
  File setup.py, line 317, in main
    (include/cuda, glob.glob(src/cuda/*.hpp))
  File /Users/dbelll/src/pycuda-0.93/aksetup_helper.py, line 12, in
 setup
    setup(*args, **kwargs)
  File /Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/distutils/core.py, line 152, in setup
    dist.run_commands()
  File /Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/distutils/dist.py, line 975, in run_commands
    self.run_command(cmd)
  File /Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/distutils/dist.py, line 995, in run_command
    cmd_obj.run()
  File /Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/distutils/command/build.py, line 134, in run
    self.run_command(cmd_name)
  File /Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/distutils/cmd.py, line 333, in run_command
    self.distribution.run_command(command)
  File /Library/Frameworks/Python.framework/Versions/2.6/lib

[PyCuda] PyCuda installation error on Windows

2009-04-02 Thread Ashwin Nanjappa
Hi,

I downloaded PyCuda v0.92. I'm following the Windows installation
instructions given at the bottom of this webpage:
http://documen.tician.de/pycuda/install.html

configure.py runs without any error (or any visible output).

After that issuing command:
python setup.py install
says it cannot find CUDA_ROOT.

I then edit siteconf.py and add CUDA_ROOT to it:
CUDA_ROOT = r'C:\Program Files\NVIDIA Corporation\CUDA'

The next error I get on running python setup.py install again is:

running build_ext
error: Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing -c mingw32 to setup.py.


I don't have Visual Studio 2003 nor do I wish to install this old
version of Visual Studio. Is there any solution for me to install
PyCuda?

Thanks,
~ash

___
PyCuda mailing list
PyCuda@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net


Re: [PyCuda] PyCuda installation error on Windows

2009-04-02 Thread Ashwin Nanjappa
On Fri, Apr 3, 2009 at 06:50, Andreas Klöckner li...@informa.tiker.net wrote:

 I'm not a Windows guy, so what I'm saying will likely be of little help. If
 you're a Windows guru reading this, please speak up.

 One option might be to build Python from source. Also, what about MingW?

Both are not feasable for me right now. Surely there's someone here
who is using Windows and Visual C++?! :-)

~ash

___
PyCuda mailing list
PyCuda@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net


Re: [PyCuda] An error:

2009-03-18 Thread Andreas Klöckner
On Mittwoch 18 März 2009, William King wrote:
 I'm glad to help. I'd like to try to get a test together that will
 compute some algorithm on the GPU and one on the CPU and compare the
 speeds.

 Do you think it would be possible to define the algorithm once, and
 choose where it is executed?

Well, if you use any of the CUDA features at all (which you likely want to), 
then that's going to be somewhat difficult.

Andreas


signature.asc
Description: This is a digitally signed message part.
___
PyCuda mailing list
PyCuda@tiker.net
http://tiker.net/mailman/listinfo/pycuda_tiker.net