Skip to content

Commit

Permalink
Correct _LIBCUDACXX_CUDACC_VER value computation (#9579)
Browse files Browse the repository at this point in the history
This brings the libcudacxx patch inline with the proposed upstream changes ( NVIDIA/libcudacxx#225 ).

This is needed so that CUDA versions are correctly computed and decimal-128 support is enabled when using CUDA 11.5+

Authors:
  - Robert Maynard (https://github.com/robertmaynard)

Approvers:
  - Conor Hoekstra (https://github.com/codereport)
  - Mark Harris (https://github.com/harrism)

URL: #9579
  • Loading branch information
robertmaynard authored Nov 4, 2021
1 parent 275f5fc commit 9d375f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/cmake/libcudacxx.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index d55a43688..654142d7e 100644
#define _LIBCUDACXX_CUDACC_VER_BUILD __CUDACC_VER_BUILD__
#define _LIBCUDACXX_CUDACC_VER \
- _LIBCUDACXX_CUDACC_VER_MAJOR * 10000 + _LIBCUDACXX_CUDACC_VER_MINOR * 100 + \
+ _LIBCUDACXX_CUDACC_VER_MAJOR * 10000 + _LIBCUDACXX_CUDACC_VER_MINOR * 1000 + \
+ _LIBCUDACXX_CUDACC_VER_MAJOR * 100000 + _LIBCUDACXX_CUDACC_VER_MINOR * 1000 + \
_LIBCUDACXX_CUDACC_VER_BUILD

#define _LIBCUDACXX_HAS_NO_LONG_DOUBLE
Expand Down

0 comments on commit 9d375f5

Please sign in to comment.