Pyrit does not compile with CUDA 2.1

The CUDA-Toolkit version that is currently available on nvidia.com (cuda-linux-rel-nightly-2.1.1635-3065709.run) seems to contain a bug that was already seen in CUDA 1.0 and prevents Pyrit from compiling. The compiler executable ‘be’ will hang and consume 99% cpu-time without ever finishing.

Poke Nvidia – it’s not Pyrit’ fault :-\

Update: With CUDA 2.1 you may try the compiler option “–opencc-options -WOPT:expr_reass=off” to work around the problem for now.

7 Comments

  1. haha, thanks for this, might want to add it onto the google code page aswell. As i have been searching for a while as to why it wasnt compiling and just hanging.

  2. Thanks for noting this. We’ve opened bug 505523.

  3. Thanks for reporting the issue! With CUDA 2.1, you may try the compiler option, –opencc-options -WOPT:expr_reass=off, to work around the problem for now.

  4. Im sorry, but i dont know were we have to put the code:

    –opencc-options -WOPT:expr_reass=off

    i’ll guess thats its on the line 14 of setup.py but when i try to compile always says:

    File “./setup.py”, line 14
    SyntaxError: Non-ASCII character ‘\xe2’ in file ./setup.py on line 14, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

    Thanks

  5. Here is what I did (-Xopencc -WOPT:expr_reass=off):

    [jiawang@cuda-spare 505523.Pyrit]$ time /home/jiawang/cuda2.1/bin/nvcc -Xcompiler “-fPIC -DHAVE_CUDA” -Xopencc -WOPT:expr_reass=off -c cpyrit_cuda.cu
    cpyrit_cuda.cu: In function âPyObject* cpyrit_cuda(PyObject*, PyObject*)â:
    cpyrit_cuda.cu:341: warning: passing NULL to non-pointer argument 2 of âcudaError_t cudaEventRecord(cudaEvent_t, cudaStream_t)â

    real 0m4.842s
    user 0m4.453s
    sys 0m0.150s
    [jiawang@cuda-spare 505523.Pyrit]$

    Hope this helps.

    Thanks!

  6. Could someone assist with the following syntax?

    /usr/local/cuda/bin/nvcc -Xcompiler -fPIC -DHAVE_CUDA -Xopencc -WOPT:expr_reass=off -c /home/user/pyrit/cpyrit_cuda.cu

    results are:

    (0): Warning: Option ‘expr_reass’ not in group ‘WOPT’ (WOPT:expr_reass=off)
    (0): Warning: Option ‘expr_reass’ not in group ‘WOPT’ (WOPT:expr_reass=off)

    I get an output file, but I can’t seem to run it. Thanks.

  7. Could you please use ‘-V’ to check the compiler version you’re using?

    I downloaded CUDA 2.1 from Cuda Zone, which accepts the syntax without the problem.

    $ /home/jiawang/cuda2.1/bin/nvcc -V
    nvcc: NVIDIA (R) Cuda compiler driver
    Copyright (c) 2005-2007 NVIDIA Corporation
    Built on Fri_Nov__7_06:20:13_PST_2008
    Cuda compilation tools, release 2.1, V0.2.1221

    $ /home/jiawang/cuda2.1/bin/nvcc -Xcompiler -fPIC -DHAVE_CUDA -Xopencc -WOPT:expr_reass=off -c cpyrit_cuda.cu
    cpyrit_cuda.cu: In function âPyObject* cpyrit_cuda(PyObject*, PyObject*)â:
    cpyrit_cuda.cu:341: warning: passing NULL to non-pointer argument 2 of âcudaError_t cudaEventRecord(cudaEvent_t, cudaStream_t)â
    $

    btw, you won’t need the workaround when CUDA 2.2 becomes available :-)

    Thanks!


Comments RSS TrackBack Identifier URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

  • RSS Unknown Feed

    • An error has occurred; the feed is probably down. Try again later.