x
This commit is contained in:
+1
-1
@@ -159,7 +159,7 @@ RUN set -ex && \
|
||||
printf 'include(/opt/rocm/lib/cmake/rocrand/rocrand-config.cmake)\nif(TARGET roc::rocrand AND NOT TARGET hip::hiprand)\n add_library(hip::hiprand ALIAS roc::rocrand)\nendif()\n' \
|
||||
> /opt/rocm/lib/cmake/hiprand/hiprand-config.cmake && \
|
||||
mkdir -p /opt/rocm/lib/cmake/hipblas && \
|
||||
printf 'include(/opt/rocm/lib/cmake/rocblas/rocblas-config.cmake)\nif(TARGET roc::rocblas AND NOT TARGET hip::hipblas)\n add_library(hip::hipblas ALIAS roc::rocblas)\nendif()\n' \
|
||||
printf 'include(/opt/rocm/lib/cmake/rocblas/rocblas-config.cmake)\nif(TARGET roc::rocblas AND NOT TARGET hip::hipblas)\n add_library(hip::hipblas ALIAS roc::rocblas)\nendif()\nif(TARGET roc::rocblas AND NOT TARGET roc::hipblas)\n add_library(roc::hipblas ALIAS roc::rocblas)\nendif()\n' \
|
||||
> /opt/rocm/lib/cmake/hipblas/hipblas-config.cmake && \
|
||||
# 批量创建 hip→roc 别名 cmake config(仅原生 config 缺失时创建)
|
||||
for pair in "hipcub:rocprim" "hipsolver:rocsolver" "hipsparse:rocsparse" "hipfft:rocfft"; do \
|
||||
|
||||
Reference in New Issue
Block a user