Skip to content

Commit

Permalink
Merge pull request cupy#8958 from chainer-ci/bp-8952-v13-use_cxx17
Browse files Browse the repository at this point in the history
[backport] Broaden usage of C++17
  • Loading branch information
kmaehashi authored Feb 18, 2025
2 parents bc50cde + c986201 commit 59af44a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cupy/_core/_cub_reduction.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ cdef function.Function _create_cub_reduction_function(
# license issue we can't yet bundle bf16 headers. CUB offers us a
# band-aid solution to avoid including the latter (NVIDIA/cub#478,
# nvbugs 3641496).
options += ('--std=c++11', '-DCUB_DISABLE_BF16_SUPPORT')
# 3. Recent CCCL versions need C++17.
options += ('--std=c++17', '-DCUB_DISABLE_BF16_SUPPORT')

cdef str backend
if runtime._is_hip_environment:
Expand Down
2 changes: 1 addition & 1 deletion cupy/_functional/vectorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def __call__(self, *args):
kern = _core.ElementwiseKernel(
in_params, out_params, body, 'cupy_vectorize',
preamble=result.code,
options=('-DCUPY_JIT_MODE', '--std=c++14'),
options=('-DCUPY_JIT_MODE', '--std=c++17'),
)
self._kernel_cache[itypes] = kern

Expand Down

0 comments on commit 59af44a

Please sign in to comment.