Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
songlinfeng
cupy
Commits
f42c3bb0
Commit
f42c3bb0
authored
Feb 06, 2026
by
songlinfeng
💬
Browse files
Update README.md
parent
deb763b7
Pipeline
#3387
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
README.md
README.md
+26
-0
No files found.
README.md
View file @
f42c3bb0
# cupy
该仓库克隆自官方仓库,并整合了依赖的第三方依赖
#编译方法
```
sh
export
CUPY_INSTALL_USE_HIP
=
1
export
ROCM_HOME
=
/opt/dtk
export
HCC_AMDGPU_TARGET
=
gfx936
export
CXXFLAGS
=
"-fpermissive"
export
CFLAGS
=
"-fpermissive"
pip
install
wheel
pip
install
fastrlock
==
0.8.3
numpy
==
1.26.4
git clone http://developer.sourcefind.cn/codes/songlinfeng/cupy.git
cd
cupy
python setup.py bdist_wheel
```
如果使用dtk-2604以上版本需要修改/opt/dtk/include/thrust/version.h,添加#define THRUST_DEVICE_SYSTEM THRUST_DEVICE_SYSTEM_HIP
```
sh
#pragma once
#include <thrust/detail/config/config.h>
#define THRUST_DEVICE_SYSTEM THRUST_DEVICE_SYSTEM_HIP
#if THRUST_DEVICE_SYSTEM == THRUST_DEVICE_SYSTEM_CUDA
#include <cuda/version>
#endif
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment