Re: [PyCUDA] pycuda install help
Hi Andreas, You were right about the linking... Should have seen that myself... pycuda.autoinit works when compiled with the right gcc... thanks again! On Mon, Mar 21, 2011 at 1:01 PM, Raghuram.O.S. raghuramos1...@gmail.comwrote: Thank you Andreas. Thats seems to have solved some issues. Will start work on this now. On Fri, Mar 18, 2011 at 4:21 AM, Andreas Kloeckner li...@informa.tiker.net wrote: On Fri, 18 Mar 2011 03:51:53 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Okay. Its not a pycuda issue anymore. I loaded a few modules. Now I'm getting this. import pycuda.autoinit ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /nfs/01/osu5574/local/python/lib/python2.7/site-packages/pycuda-0.94rc-py2.7-linux-x86_64.egg/pycuda/_driver.so) This problem seems to be that you used a newer C++ compiler, but the dynamic linker (ld.so) is still finding the old compiler's libstdc++.so.6. Use LD_LIBRARY_PATH to point ld.so to the right libstdc++. HTH, Andreas -- Regards, Onti -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
Thank you Andreas. Thats seems to have solved some issues. Will start work on this now. On Fri, Mar 18, 2011 at 4:21 AM, Andreas Kloeckner li...@informa.tiker.netwrote: On Fri, 18 Mar 2011 03:51:53 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Okay. Its not a pycuda issue anymore. I loaded a few modules. Now I'm getting this. import pycuda.autoinit ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /nfs/01/osu5574/local/python/lib/python2.7/site-packages/pycuda-0.94rc-py2.7-linux-x86_64.egg/pycuda/_driver.so) This problem seems to be that you used a newer C++ compiler, but the dynamic linker (ld.so) is still finding the old compiler's libstdc++.so.6. Use LD_LIBRARY_PATH to point ld.so to the right libstdc++. HTH, Andreas -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
I changed it to gcc-4.2.3. Some progress. But now I'm getting this, running build running build_py running build_ext building '_pvt_struct' extension gcc -pthread -fno-strict-aliasing -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -O3 -DNDEBUG -fPIC -I/usr/include/python2.4 -c src/wrapper/_pycuda_struct.c -o build/temp.linux-x86_64-2.4/src/wrapper/_pycuda_struct.o src/wrapper/_pycuda_struct.c: In function ‘_range_error’: src/wrapper/_pycuda_struct.c:275: error: ‘SIZEOF_SIZE_T’ undeclared (first use in this function) src/wrapper/_pycuda_struct.c:275: error: (Each undeclared identifier is reported only once src/wrapper/_pycuda_struct.c:275: error: for each function it appears in.) src/wrapper/_pycuda_struct.c:288: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 4 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c:288: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 5 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c: In function ‘prepare_s’: src/wrapper/_pycuda_struct.c:829: error: ‘PY_SSIZE_T_MAX’ undeclared (first use in this function) src/wrapper/_pycuda_struct.c: In function ‘s_unpack’: src/wrapper/_pycuda_struct.c:1010: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c: In function ‘s_unpack_from’: src/wrapper/_pycuda_struct.c:1053: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c: In function ‘s_pack’: src/wrapper/_pycuda_struct.c:1147: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c: In function ‘s_pack_into’: src/wrapper/_pycuda_struct.c:1188: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘int’ src/wrapper/_pycuda_struct.c:1200: warning: implicit declaration of function ‘PyInt_AsSsize_t’ src/wrapper/_pycuda_struct.c:1212: warning: format ‘%zd’ expects type ‘signed size_t’, but argument 3 has type ‘Py_ssize_t’ src/wrapper/_pycuda_struct.c: In function ‘s_get_size’: src/wrapper/_pycuda_struct.c:1234: warning: implicit declaration of function ‘PyInt_FromSsize_t’ src/wrapper/_pycuda_struct.c:1234: warning: return makes pointer from integer without a cast src/wrapper/_pycuda_struct.c: In function ‘calcsize’: src/wrapper/_pycuda_struct.c:1357: warning: return makes pointer from integer without a cast error: command 'gcc' failed with exit status 1 make: *** [install] Error 1 On Fri, Mar 18, 2011 at 12:37 AM, Andreas Kloeckner li...@informa.tiker.net wrote: On Fri, 18 Mar 2011 00:26:54 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Yup. Its passed. gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -Isrc/cpp -I/nfs/01/osu5574/local/boost/include -I/nfs/01/osu5574/local/cuda/include -I/nfs/01/osu5574/local/python/lib/python2.7/site-packages/numpy/core/include -I/nfs/01/osu5574/softwares/virtualenv-1.4.9/../Python-2.7/include/python2.7 -c src/wrapper/mempool.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/mempool.o -DBOOST_PYTHON_NO_PY_SIGNATURES This is the final one at which it fails. Should I use the latest version? Or do you suggest a specific version? Anythying that's not version 4.1 ought to be ok. Andreas -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
Or is there a way I can specify the python lib? I have virtual python and python 2.7 is on that. I do not know why its picking up the systems python 2.4 On Fri, Mar 18, 2011 at 3:03 AM, Andreas Kloeckner li...@informa.tiker.netwrote: On Fri, 18 Mar 2011 02:26:49 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: I changed it to gcc-4.2.3. Some progress. But now I'm getting this, Try compiling the version from git. It has improved support for Python 2.4. Andreas -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
k... spoke too soon... i am getting this :( 4 cuda.init() 5 6 from pycuda.tools import make_default_context RuntimeError: cuInit failed: no device When I just try pycuda.autoinit On Fri, Mar 18, 2011 at 3:11 AM, Raghuram.O.S. raghuramos1...@gmail.comwrote: install worked!!! i removed the older egg and ran configure from the 2.7 bin... now for the testing. Thanks a lot for all the help Andreas! Will report back if i run into some more trouble... On Fri, Mar 18, 2011 at 3:03 AM, Raghuram.O.S. raghuramos1...@gmail.comwrote: Or is there a way I can specify the python lib? I have virtual python and python 2.7 is on that. I do not know why its picking up the systems python 2.4 On Fri, Mar 18, 2011 at 3:03 AM, Andreas Kloeckner li...@informa.tiker.net wrote: On Fri, 18 Mar 2011 02:26:49 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: I changed it to gcc-4.2.3. Some progress. But now I'm getting this, Try compiling the version from git. It has improved support for Python 2.4. Andreas -- Regards, Onti -- Regards, Onti -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
On Fri, 18 Mar 2011 03:51:53 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Okay. Its not a pycuda issue anymore. I loaded a few modules. Now I'm getting this. import pycuda.autoinit ImportError: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /nfs/01/osu5574/local/python/lib/python2.7/site-packages/pycuda-0.94rc-py2.7-linux-x86_64.egg/pycuda/_driver.so) This problem seems to be that you used a newer C++ compiler, but the dynamic linker (ld.so) is still finding the old compiler's libstdc++.so.6. Use LD_LIBRARY_PATH to point ld.so to the right libstdc++. HTH, Andreas pgp2yIXEn9SJa.pgp Description: PGP signature ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
I tried BOOST_INC_DIR = ['/usr/local/include/boost/'] which is installed in my home dir as i dont have sudo permission. But I still get the same error. /nfs/01/osu5574/local/boost/include/boost/type_traits/remove_const.hpp:61: instantiated from ‘boost::remove_const::pooled_host_allocation’ /nfs/01/osu5574/local/boost/include/boost/python/object/pointer_holder.hpp:127: instantiated from ‘void* boost::python::objects::pointer_holderlt;Pointer, Valuegt;::holds(boost::python::type_info, bool) [with Pointer = std::auto_ptr::pooled_host_allocation, Value = ::pooled_host_allocation]’ src/wrapper/mempool.cpp:278: instantiated from here /nfs/01/osu5574/local/boost/include/boost/type_traits/detail/cv_traits_impl.hpp:38: internal compiler error: in make_rtl_for_nonlocal_decl, at cp/decl.c:5067 Please submit a full bug report, with preprocessed source if appropriate. See lt;URL:http://bugzilla.redhat.com/bugzillagt; for instructions. Preprocessed source stored into /tmp/ccJkK4fW.out file, please attach this to your bugreport. error: command 'gcc' failed with exit status 1 make: *** [install] Error 1 Could anyone please help me out with this? -- View this message in context: http://pycuda.2962900.n2.nabble.com/PyCUDA-pycuda-install-help-tp5246123p6183228.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] pycuda install help
On Thu, 17 Mar 2011 19:51:26 -0700 (PDT), raghuramos1987 raghuramos1...@gmail.com wrote: I tried BOOST_INC_DIR = ['/usr/local/include/boost/'] which is installed in my home dir as i dont have sudo permission. You seem to be contradicting yourself here--/usr is very much not in your home dir. Have you tried this bit of wisdom from the FAQ? http://wiki.tiker.net/PyCuda/FrequentlyAskedQuestions#I_have_.3Cinsert_random_compilation_problem.3E_with_gcc_4.1_or_older._Help.21 HTH, Andreas pgpYzeFAJcSCc.pgp Description: PGP signature ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
Sorry, I put in the wrong line. This is my siteconf.py BOOST_INC_DIR = ['/nfs/01/osu5574/local/boost/include'] BOOST_LIB_DIR = ['/nfs/01/osu5574/local/boost/lib'] BOOST_COMPILER = 'gcc' BOOST_PYTHON_LIBNAME = ['boost_python'] BOOST_THREAD_LIBNAME = ['boost_thread'] CUDA_TRACE = False CUDA_ENABLE_GL = False CUDA_ROOT = '/nfs/01/osu5574/local/cuda/' CUDADRV_LIB_DIR = ['/nfs/01/osu5574/loca/cuda/lib64'] CUDADRV_LIBNAME = ['cuda'] CXXFLAGS = ['-DBOOST_PYTHON_NO_PY_SIGNATURES'] LDFLAGS = [] On Thu, Mar 17, 2011 at 11:20 PM, Andreas Kloeckner li...@informa.tiker.net wrote: On Thu, 17 Mar 2011 19:51:26 -0700 (PDT), raghuramos1987 raghuramos1...@gmail.com wrote: I tried BOOST_INC_DIR = ['/usr/local/include/boost/'] which is installed in my home dir as i dont have sudo permission. You seem to be contradicting yourself here--/usr is very much not in your home dir. Have you tried this bit of wisdom from the FAQ? http://wiki.tiker.net/PyCuda/FrequentlyAskedQuestions#I_have_.3Cinsert_random_compilation_problem.3E_with_gcc_4.1_or_older._Help.21 HTH, Andreas -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
Dear Onti, On Thu, 17 Mar 2011 23:21:21 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Sorry, I put in the wrong line. This is my siteconf.py BOOST_INC_DIR = ['/nfs/01/osu5574/local/boost/include'] BOOST_LIB_DIR = ['/nfs/01/osu5574/local/boost/lib'] BOOST_COMPILER = 'gcc' BOOST_PYTHON_LIBNAME = ['boost_python'] BOOST_THREAD_LIBNAME = ['boost_thread'] CUDA_TRACE = False CUDA_ENABLE_GL = False CUDA_ROOT = '/nfs/01/osu5574/local/cuda/' CUDADRV_LIB_DIR = ['/nfs/01/osu5574/loca/cuda/lib64'] CUDADRV_LIBNAME = ['cuda'] CXXFLAGS = ['-DBOOST_PYTHON_NO_PY_SIGNATURES'] LDFLAGS = [] Do you happen to know whether a newer compiler is installed on the system? If the NO_PY_SIGNATURES define doesn't help, I think this would be the only option. Andreas pgpfW04fUNNTh.pgp Description: PGP signature ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
Yup. Its passed. gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -Isrc/cpp -I/nfs/01/osu5574/local/boost/include -I/nfs/01/osu5574/local/cuda/include -I/nfs/01/osu5574/local/python/lib/python2.7/site-packages/numpy/core/include -I/nfs/01/osu5574/softwares/virtualenv-1.4.9/../Python-2.7/include/python2.7 -c src/wrapper/mempool.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/mempool.o -DBOOST_PYTHON_NO_PY_SIGNATURES This is the final one at which it fails. Should I use the latest version? Or do you suggest a specific version? On Fri, Mar 18, 2011 at 12:18 AM, Andreas Kloeckner li...@informa.tiker.net wrote: On Thu, 17 Mar 2011 23:33:53 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48) I thought this was the compiler which other links I referred to had used (and the default one on the red hat machine I'm using). Should I install a newer version? Two things: - Is the '-DBOOST_PYTHON_NO_PY_SIGNATURES' option actually passed to the compiler (i.e. can you see it during compilation)? If not, that needs fixing. - If you can see it and the compiler still crashes with an ICE, a newer compiler is likely your only option. Andreas -- Regards, Onti ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda
Re: [PyCUDA] pycuda install help
On Fri, 18 Mar 2011 00:26:54 -0400, Raghuram.O.S. raghuramos1...@gmail.com wrote: Yup. Its passed. gcc -pthread -fno-strict-aliasing -fwrapv -Wall -O3 -DNDEBUG -fPIC -Isrc/cpp -I/nfs/01/osu5574/local/boost/include -I/nfs/01/osu5574/local/cuda/include -I/nfs/01/osu5574/local/python/lib/python2.7/site-packages/numpy/core/include -I/nfs/01/osu5574/softwares/virtualenv-1.4.9/../Python-2.7/include/python2.7 -c src/wrapper/mempool.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/mempool.o -DBOOST_PYTHON_NO_PY_SIGNATURES This is the final one at which it fails. Should I use the latest version? Or do you suggest a specific version? Anythying that's not version 4.1 ought to be ok. Andreas pgpg6Uvmbs5ay.pgp Description: PGP signature ___ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda