Coder Social home page Coder Social logo

SegFault about scikit-cuda HOT 6 CLOSED

lebedov avatar lebedov commented on August 30, 2024
SegFault

from scikit-cuda.

Comments (6)

andrewcron avatar andrewcron commented on August 30, 2024

I get the same issue with CULA R12, it seems fine with R11.

from scikit-cuda.

lebedov avatar lebedov commented on August 30, 2024

Which test(s) are you alluding to? I'm not sure what "5th" corresponds to.

The function interfaces to the cublas library have changed in CUDA 4.0; I'm currently in the process of rewriting the Python wrappers to take this into account.

from scikit-cuda.

jmcarval avatar jmcarval commented on August 30, 2024

Thanks for the replies.

I get the same issue with CULA R12, it seems fine with R11.
I'm using CULA R12 too

Which test(s) are you alluding to? I'm not sure what "5th" corresponds to.
bash-4.2$ git clone https://github.com/lebedov/scikits.cuda.git
bash-4.2$ cd scikits.cuda
bash-4.2$ sudo python setup.py install
bash-4.2$ nosetests
....Segmentation fault

Is there any other command or file I can use to provide more information on this error?

Thanks

-- Edit --

bash-4.2$ nosetests -s -v
test_fft_float32_to_complex64 (test_fft.test_fft) ... ok
test_fft_float64_to_complex128 (test_fft.test_fft) ... ok
test_ifft_complex128_to_float64 (test_fft.test_fft) ... ok
test_ifft_complex64_to_float32 (test_fft.test_fft) ... ok
test_trapz2d_complex128 (test_integrate.test_integrate) ... Segmentation fault

from scikit-cuda.

lebedov avatar lebedov commented on August 30, 2024

All tests seem to pass with the latest revision in github on my system. I'm using pycuda 2011.1.2, CUDA 4.0, gcc 4.6.1, and CULA R12.

from scikit-cuda.

wslihgt avatar wslihgt commented on August 30, 2024

Hi all,

I also have the same issue. Actually, I also found out that initializing culinalg (from the dot_demo example) in an interactive python environment (ipython in my case), then leaving python also leads to a segfault... here is what I did:

Welcome to pylab, a matplotlib-based Python environment [backend: MacOSX].
For more information, type 'help(pylab)'.

In [1]: import pycuda.autoinit

In [2]: import pycuda.gpuarray as gpuarray

In [3]: import pycuda.driver as drv

In [4]: import numpy as np

In [5]: import pycuda.autoinit, pycuda.compiler

In [6]: import scikits.cuda.linalg as culinalg

In [7]: import scikits.cuda.misc as cumisc

In [8]: culinalg.init()
c_int(0)
0

In [9]: pycuda.VERSION
Out[9]: (2012, 1)

In [11]: import scikits.cuda

In [12]: scikits.cuda.__version__
Out[12]: '0.042'

In [13]: 
Do you really want to exit ([y]/n)? 
Segmentation fault

Additionally, my CUDA and CULA are the latest, 4.2 and R15 resp..
gcc is 4.2.1, under macosx 10.6.8. Graphic card is an NVIDIA GeForce 9400M, with 256Mo (maybe this could explain the segmentation fault? not enough space there?).
My Python is the one provided by enthought (www.enthought.com) through EPD 7.2 (64 bits).

Running dot_demo also fires a segmentation fault, when calling temp_gpu = culinalg.dot(a_gpu, b_gpu). Any idea what is happening there, and if there is a "quick fix" for solving that?

Thanks in advance!

P.S.: by the way, with CULA R15, it does not seem that libcula.dylib exists, si I replaced it in cula.py by libcula_core.dylib. Not sure whether that was the right thing to do...

from scikit-cuda.

lebedov avatar lebedov commented on August 30, 2024

Please reopen if this continues to be a problem with the latest code.

from scikit-cuda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.