blob: 4ef863b0962a7caed701fd9c576806d4e1a73793 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
Index: install/cupy_builder/install_build.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/install/cupy_builder/install_build.py b/install/cupy_builder/install_build.py
--- a/install/cupy_builder/install_build.py (revision 1e4a78b77d66840d8e2e15e0d73e98573bf5be22)
+++ b/install/cupy_builder/install_build.py (date 1741351938423)
@@ -168,7 +168,8 @@
library_dirs.append(os.path.join(rocm_path, 'lib'))
if use_hip:
- extra_compile_args.append('-std=c++11')
+ # ROCm5.3 and above requires c++14
+ extra_compile_args.append('-std=c++14')
if PLATFORM_WIN32:
nvtx_path = _environment.get_nvtx_path()
Index: install/cupy_builder/cupy_setup_build.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/install/cupy_builder/cupy_setup_build.py b/install/cupy_builder/cupy_setup_build.py
--- a/install/cupy_builder/cupy_setup_build.py (revision 1e4a78b77d66840d8e2e15e0d73e98573bf5be22)
+++ b/install/cupy_builder/cupy_setup_build.py (date 1741351991962)
@@ -328,6 +328,8 @@
settings['define_macros'].append(('__HIP_PLATFORM_AMD__', '1'))
# deprecated since ROCm 4.2.0
settings['define_macros'].append(('__HIP_PLATFORM_HCC__', '1'))
+ # Fix for ROCm 6.3.0
+ settings['define_macros'].append(('THRUST_DEVICE_SYSTEM', 'THRUST_DEVICE_SYSTEM_HIP'))
settings['define_macros'].append(('CUPY_CACHE_KEY', ctx.cupy_cache_key))
try:
|