question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CUDA atomicrmw error on windows

See original GitHub issue

Reporting a bug

@gmarkall

Looks the llvm patch did not fix the problem for windows.

======================================================================
ERROR: test_atomic_add_float (numba.cuda.tests.cudapy.test_atomics.TestCudaAtomics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\path\lib\site-packages\numba\cuda\tests\cudapy\test_atomics.py", line 215, in test_atomic_add_float
    cuda_atomic_add_float = cuda.jit('void(float32[:])')(atomic_add_float)
  File "C:\path\lib\site-packages\numba\cuda\decorators.py", line 103, in kernel_jit
    kernel.bind()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 586, in bind
    self._func.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 462, in get
    ptx = self.ptx.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 433, in get
    **self._extra_options)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 515, in llvm_to_ptx
    ptx = cu.compile(**opts)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 232, in compile
    self._try_error(err, 'Failed to compile\n')
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 250, in _try_error
    self.driver.check_error(err, "%s\n%s" % (msg, self.get_log()))
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 140, in check_error
    raise exc
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (50, 17): parse expected binary operation in atomicrmw
NVVM_ERROR_COMPILATION

======================================================================
ERROR: test_atomic_add_float_2 (numba.cuda.tests.cudapy.test_atomics.TestCudaAtomics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\path\lib\site-packages\numba\cuda\tests\cudapy\test_atomics.py", line 227, in test_atomic_add_float_2
    cuda_atomic_add2 = cuda.jit('void(float32[:,:])')(atomic_add_float_2)
  File "C:\path\lib\site-packages\numba\cuda\decorators.py", line 103, in kernel_jit
    kernel.bind()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 586, in bind
    self._func.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 462, in get
    ptx = self.ptx.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 433, in get
    **self._extra_options)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 515, in llvm_to_ptx
    ptx = cu.compile(**opts)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 232, in compile
    self._try_error(err, 'Failed to compile\n')
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 250, in _try_error
    self.driver.check_error(err, "%s\n%s" % (msg, self.get_log()))
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 140, in check_error
    raise exc
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (62, 18): parse expected binary operation in atomicrmw
NVVM_ERROR_COMPILATION

======================================================================
ERROR: test_atomic_add_float_3 (numba.cuda.tests.cudapy.test_atomics.TestCudaAtomics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\path\lib\site-packages\numba\cuda\tests\cudapy\test_atomics.py", line 234, in test_atomic_add_float_3
    cuda_atomic_add3 = cuda.jit('void(float32[:,:])')(atomic_add_float_3)
  File "C:\path\lib\site-packages\numba\cuda\decorators.py", line 103, in kernel_jit
    kernel.bind()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 586, in bind
    self._func.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 462, in get
    ptx = self.ptx.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 433, in get
    **self._extra_options)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 515, in llvm_to_ptx
    ptx = cu.compile(**opts)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 232, in compile
    self._try_error(err, 'Failed to compile\n')
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 250, in _try_error
    self.driver.check_error(err, "%s\n%s" % (msg, self.get_log()))
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 140, in check_error
    raise exc
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (62, 18): parse expected binary operation in atomicrmw
NVVM_ERROR_COMPILATION

======================================================================
ERROR: test_atomic_add_returns_old (numba.cuda.tests.cudapy.test_atomics.TestCudaAtomics)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\path\lib\site-packages\numba\cuda\tests\cudapy\test_atomics.py", line 489, in test_atomic_add_returns_old
    self._test_atomic_returns_old(kernel, 10)
  File "C:\path\lib\site-packages\numba\cuda\tests\cudapy\test_atomics.py", line 478, in _test_atomic_returns_old
    kernel[1, 1](x)
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 815, in __call__
    kernel = self.specialize(*args)
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 826, in specialize
    kernel = self.compile(argtypes)
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 845, in compile
    kernel.bind()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 586, in bind
    self._func.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 462, in get
    ptx = self.ptx.get()
  File "C:\path\lib\site-packages\numba\cuda\compiler.py", line 433, in get
    **self._extra_options)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 515, in llvm_to_ptx
    ptx = cu.compile(**opts)
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 232, in compile
    self._try_error(err, 'Failed to compile\n')
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 250, in _try_error
    self.driver.check_error(err, "%s\n%s" % (msg, self.get_log()))
  File "C:\path\lib\site-packages\numba\cuda\cudadrv\nvvm.py", line 140, in check_error
    raise exc
numba.cuda.cudadrv.error.NvvmError: Failed to compile

<unnamed> (25, 17): parse expected binary operation in atomicrmw
NVVM_ERROR_COMPILATION

----------------------------------------------------------------------

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
sklamcommented, Jun 4, 2020

Actually, this maybe a buildfarm issue

0reactions
gmarkallcommented, Jul 30, 2020

You’re welcome - glad it works!

Read more comments on GitHub >

github_iconTop Results From Across the Web

c++ - Compile errors using Nvidia GPU Computing toolkit and ...
I have tried the following: Uninstall/reinstall Cygwin tools; Uninstall/reinstall both 32 and 64 bit libraries in the Nvidia GPU Computing ...
Read more >
CUDA Installation Guide for Microsoft Windows
CUDA Installation Guide for Microsoft Windows. The installation instructions for the CUDA Toolkit on MS-Windows systems.
Read more >
Windows 10 does not let CUDA applications to use all VRAM ...
I'm using nvidia graphics cards for 3D rendering using CUDA computing. Problem takes place after upgrading to Windows 10 (from win7). We did...
Read more >
Julia 1.7 & CUDA on Windows 11 - GPU
I am not able to get CUDA installed on Julia 1.7 on Windows 11 (not even with WSL). The errors seem to be...
Read more >
Compiling CUDA with clang — LLVM 16.0.0git documentation
This document describes how to compile CUDA code with clang, ... Compilation on MacOS and Windows may or may not work and currently...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found