Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .jenkins/caffe2/amd/build_amd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ fi

export LANG=C.UTF-8
export LC_ALL=C.UTF-8
export HCC_AMDGPU_TARGET=gfx900
export KMTHINLTO=1
echo -e 'gfx803\ngfx900\ngfx906' > /opt/rocm/bin/target.lst

########## HIPIFY Caffe2 operators
${PYTHON} "${ROOT_DIR}/tools/amd_build/build_caffe2_amd.py"
Expand Down
10 changes: 5 additions & 5 deletions rocm-docs/caffe2-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ Once the machine is ready with ROCm stack, there are two ways to use caffe2

## Launch docker container with caffe2 pre-installed
```
docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video rocm/caffe2:rocm1.9-v2
docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video rocm/caffe2:wrabbit-v1
```

To run benchmarks, skip directly to benchmarks section of the document.

## Build Caffe2 from source
### Pull the docker image
```
docker pull rocm/caffe2:unbuilt-rocm1.9-v2
docker pull rocm/caffe2:unbuilt-wrabbit-v1
```
This docker image has all the dependencies for caffe2 pre-installed.

Expand All @@ -48,7 +48,7 @@ cd pytorch

### Launch the docker container
```
docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video -v $PWD:/pytorch rocm/caffe2:unbuilt-rocm1.9-v2
docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add video -v $PWD:/pytorch rocm/caffe2:unbuilt-wrabbit-v1
```
Navigate to pytorch directory `cd /pytorch` inside the container.

Expand All @@ -67,8 +67,8 @@ Navigate to pytorch directory `cd /pytorch` inside the container.
If the test fails, make sure the following environment variables are set.

```
LD_lIBRARY_PATH=/usr/local/caffe2/lib
PYTHONPATH=/usr/local/caffe2/lib/python2.7/dist-packages
LD_LIBRARY_PATH=/pytorch/build_caffe2/lib
PYTHONPATH=/pytorch/build_caffe2
```

## Run benchmarks
Expand Down