Skip to content

[ROCm] ROCm support? #9848

Answered by Ldpe2G
lshqqytiger asked this question in Q&A
Feb 8, 2023 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

May be you can try with this repo: https://github.com/yuguo-Jack/oneflow/tree/0.9.1-rocm, which can be built successfully on the HYGON DCU plantform. The HYGON DCU plantform also support ROCm software stack.

Compile OneFlow on HYGON DCU plantform

env.sh

#!/bin/bash

#get DTKROOT by env.sh location
DTKROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
export DTKROOT=$(dirname $DTKROOT)
export AMDGPU_TARGETS="gfx906"
export ROCM_PATH=/opt/rocm
export HIP_PATH=${ROCM_PATH}/hip
export MIOPEN_FIND_MODE=3
export PATH=$ROCM_PATH/bin:$ROCM_PATH/llvm/bin:$ROCM_PATH/hip/bin:${ROCM_PATH}/miopen/bin:$PATH
export LD_LIBRARY_PATH=${ROCM_PATH}/lib:${ROCM_PATH}/lib64:$LD…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@lshqqytiger
Comment options

@Ldpe2G
Comment options

@Ldpe2G
Comment options

@lshqqytiger
Comment options

@Ldpe2G
Comment options

Answer selected by lshqqytiger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants