hi blahblahblah,
I had same error, and tried your way.
/I did this :/
user@ubuntu:~/pycuda-2011.2.2$ python
Python 2.7.3 (default, Apr 20 2012, 22:39:59)
[GCC 4.6.3] on linux2
>>> import pycuda.driver as cuda
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pycuda/driver.py", line 2, in <module>
from pycuda._driver import *
ImportError: No module named _driver
/But i got error here too: /
user@ubuntu:~$ python
>>> import pycuda.driver as cuda
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/driver.py",
line 2, in <module>
from pycuda._driver import *
ImportError: libcurand.so.4: wrong ELF class: ELFCLASS32
I am doing something wrong. Can you please elaborate ?
--
View this message in context: http://pycuda.2962900.n2.nabble.com/ImportError-No-module-named-driver-tp40…
Sent from the PyCuda mailing list archive at Nabble.com.
Hello , still the same!
echo $PATH and sudo echo $PATH gives ->
/usr/local/cuda/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.2:/usr/games/bin:CUDA_ROOT:CUDA_ROOT
sudo su and then echo $PATH gives -> /sbin:/bin:/usr/sbin:/usr/bin
There is no CUDA_ROOT.
Thank you.
--
View this message in context: http://pycuda.2962900.n2.nabble.com/nvcc-not-in-path-tp7574709p7574721.html
Sent from the PyCuda mailing list archive at Nabble.com.
This is my bashrc.
Copy only the relevant parts
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
OTCL_LIB=/home/apostolis/ns2/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/apostolis/ns2/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export CUDA_ROOT="/usr/local/cuda"
export CUDA_SDK_ROOT="/cuda_sdk"
TCL_LIB=/home/apostolis/ns2/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
XGRAPH=/home/apostolis/ns2/ns-allinone-2.34/bin:/home/apostolis/ns2/ns-allinone-2.34/tcl8.4.18/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/home/apostolis/ns2/ns-allinone-2.34/ns-2.34
NAM=/home/apostolis/ns2/ns-allinone-2.34/nam-1.14/
PROFILER=/usr/local/cuda/computeprof/bin
export
LD_LIBRARY_PATH="${CUDA_ROOT}/lib64:${CUDA_ROOT}/lib:/usr/lib64:/usr/lib:/cuda_sdk/C/lib:"
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB:/opt/intel/composer_xe_2011_sp1.6.233/mkl/lib/intel64
export
PATH=/cuda_sdk/C/common/inc:${CUDA_ROOT}/bin:${CUDA_SDK_ROOT}:${CUDA_SDK_ROOT}/shared:/home/apostolis/simplescalar/bin:/home/apostolis/simplescalar-arm/simplesim-arm:/home/apostolis/arm-cross/bin:/home/apostolis/d4-7:/opt/intel/bin:${PATH}
PATH=$PATH:$XGRAPH:$NS:$NAM:$PROFILER:/home/apostolis/intel/mkl/include/:
#export CILK_ROOT="/cilk"
#export LD_LIBRARY_PATH="/usr/lib64:${CILK_ROOT}/lib64"
#export PATH=${CILK_ROOT}/bin:${PATH}
export MKLROOT="/home/apostolis/intel/mkl"
export MKL_PATH="/home/apostolis/intel/mkl/lib/intel64"
export LD_LIBRARY_PATH=$MKL_PATH:$LD_LIBRARY_PATH
export IFACE_LIB=$MKL_PATH/libmkl_intel_ilp64.so
export CORE_LIB=$MKL_PATH/libmkl_core.so
#export MKL_LIBS=$IFACE_LIB $CORE_LIB
sh /home/apostolis/keyb_switch.sh
Could you please enter the following commands and tell me the output?
echo $PATH
sudo echo $PATH
sudo su and then echo $PATH
Note that you should export the PATH variable again as root.
Apostolis
2012/6/29 George <ggeo1(a)windowslive.com>
> Στις 29/06/2012 04:59 μμ, ο/η Apostolis Glenis έγραψε:
> > I mean that both when you are root and when you are a normal user you
> > should see /usr/local/cuda/bin when you type
> > echo $PATH
> >
> > to do that you should type into the terminal or add into bashrc
> > something like:
> > PATH=$PATH:CUDA_ROOT
> > export PATH
> >
> > I hope this helps/
> >
>
> Could you please give me the contain of .bashrc?
> Because i have all of these now:
> > export PATH=/usr/local/cuda/bin:$PATH
> > export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
> > export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH
> > export PATH=~/bin:$PATH
> > export CUDA_ROOT=/usr/local/cuda/bin
> > PATH=$PATH:CUDA_ROOT
> > export PATH
>
> (It doesn't show the "echo $PATH" when i am root).
>
> Thanks!
>
>
You mean the .bash_profile in the root/ path?
Because i tried to do (in root/.bash_profile):
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
PATH=$PATH:$HOME/bin
export PATH
but still the same.
--
View this message in context: http://pycuda.2962900.n2.nabble.com/nvcc-not-in-path-tp7574709p7574719.html
Sent from the PyCuda mailing list archive at Nabble.com.
Hello list.
Will any of you attend EuroPython, starting in Florence, Italy
on Monday 2012-07-02?
I'll be there all week and will be glad to meet other PyCUDA users.
Regards.
--
Tomasz Rybak <tomasz.rybak(a)post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A 488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak
Hello ,
I have done a format and passed Sabayon linux.
When i try to install pycuda (su -c "make install") it shows me the errors:
ctags -R src || true
/usr/bin/python2.7 setup.py install
*** WARNING: nvcc not in path.
.............................
In file included from src/cpp/cuda.cpp:1:0:
src/cpp/cuda.hpp:12:18: fatal error: cuda.h:No such file or directory.
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
make: *** [install] Error 1
My .bashrc file has :
# Put your fun stuff here.
export PATH=/usr/local/cuda/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/local/cuda/lib:$LD_LIBRARY_PATH
export PATH=~/bin:$PATH
export CUDA_ROOT=/usr/local/cuda/bin
I also added in /etc/ld.so.conf :
/usr/local/cuda/lib64
/usr/local/cuda/lib
The installation of cuda-toolkit4.2.9 was successful.The same with the sdk.
Can someone tell please what can i do now??
Thank you!
--
View this message in context: http://pycuda.2962900.n2.nabble.com/nvcc-not-in-path-tp7574709.html
Sent from the PyCuda mailing list archive at Nabble.com.
Received from mohsen jadidi on Mon, Jun 25, 2012 at 04:02:54PM EDT:
> > hello all,
> >
> > I am new in cuda and since I started I am stuck with bunch of
> problem.after
> > installing scikits and cula I get error when I want to run sample
> > test,which is :
> >
> > Traceback (most recent call last):
> > File "", line 1, in
> > ImportError: No module named intergrate
> >
> > import scikits.integrate
> > Traceback (most recent call last):
> > File "", line 1, in
> > ImportError: No module named integrate
> > import scikits.cuda.integrate
> > Traceback (most recent call last):
> > File "", line 1, in
> > File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/integrate.py",
> > line 15, in
> > from misc import select*block_grid_sizes, init, get_current_device
> > File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/misc.py", line
> > 18, in
> > import cula
> > File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/cula.py", line
> > 39, in
> > _libcula.culaGetStatusString.restype = ctypes.c_char_p
> > File "/usr/lib/python2.7/ctypes/**init**.py", line 366, in __getattr*_
> > func = self.*getitem*(name)
> > File "/usr/lib/python2.7/ctypes/*init*.py", line 371, in *getitem*
> > func = self._FuncPtr((name_or_ordinal, self))
> > AttributeError: /usr/local/cula/lib64/libcula.so: undefined symbol:
> > culaGetStatusString
> >
> > I am getting this error when I m trying to import this modules :
> >
> > misc
> >
> > intergrate
> >
> > linalg
> >
> > special
> >
> > I am using the free edition of CULA DENSE and I should note that I am able
> > to run the c codes cula examples.
> >
> > I am appreciate any help!
scikits.cuda is developed separately from pycuda; it's generally best
to submit problems regarding the former to the scikits.cuda issue
tracker on GitHub unless you believe you have encountered a problem
the involves pycuda.
L.G.
Hello,
While working with PyCuda, I've noticed that several GPU array functions
seem to be giving errors, that should work fine.
*
*
*These are using one-dimensional arrays.*
__imul__ works fine for an array times a scalar, but has errors when an
array is multiplied by another array (this was recently fixed in PyOpenCL)
__pow__ seems to have problems with complex arrays. If I take a complex
array, a, and say a**2, I get an error. This works fine with floats though.
I'm fairly certain that these are just bugs, since both work fine in
PyOpenCL. Is that the case?
Thanks!
-Andrew Miller
> hello all,
>
> I am new in cuda and since I started I am stuck with bunch of
problem.after
> installing scikits and cula I get error when I want to run sample
> test,which is :
>
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named intergrate
>
> import scikits.integrate
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No module named integrate
> import scikits.cuda.integrate
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/integrate.py",
> line 15, in
> from misc import select*block_grid_sizes, init, get_current_device
> File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/misc.py", line
> 18, in
> import cula
> File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/cula.py", line
> 39, in
> _libcula.culaGetStatusString.restype = ctypes.c_char_p
> File "/usr/lib/python2.7/ctypes/**init**.py", line 366, in __getattr*_
> func = self.*getitem*(name)
> File "/usr/lib/python2.7/ctypes/*init*.py", line 371, in *getitem*
> func = self._FuncPtr((name_or_ordinal, self))
> AttributeError: /usr/local/cula/lib64/libcula.so: undefined symbol:
> culaGetStatusString
>
> I am getting this error when I m trying to import this modules :
>
> misc
>
> intergrate
>
> linalg
>
> special
>
> I am using the free edition of CULA DENSE and I should note that I am able
> to run the c codes cula examples.
>
> I am appreciate any help!
> --
--
Mohsen Jadidi
Sorry for the stupid question: I found what I was looking for in teh Sobel
filter example.
On Thu, Jun 21, 2012 at 8:09 PM, marmaduke <duke(a)eml.cc> wrote:
> Hi
>
> I have been trying to get started with the glinterop.py example on the
> wiki (using pycuda 2011.2.2 built from git), but it produces
>
> File "GlInterop.py", line 153, in process
> dest_mapping.device_ptr())
> File "/usr/local/lib/python2.6/dist-packages/pycuda-2011.2.2-
> py2.6-linux-x86_64.egg/pycuda/driver.py",
> line 429, in function_prepared_call
> func.param_set_texref(texref)
>
> ArgumentError: Python argument types in
> Function.param_set_texref(Function, int)
> did not match C++ signature:
> param_set_texref(pycuda::function {lvalue}, pycuda::texture_reference)
>
>
> along with several DeprecationWarnings. Has anyone recently had better
> success with Py{GL, CUDA} integration?
>
> I did try modifying the C++ param_set_texref to take an int, cast it
> as a reference but that lead only to segfaults..
>
>
> Thanks,
> Marmaduke