Skip to content

Commit

Permalink
rocm: use nvidia as the HIP platform
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Bevenius <[email protected]>
  • Loading branch information
danbev committed Jun 15, 2024
1 parent 42e0480 commit 69e39ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion gpu/rocm/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

helloworld: src/helloworld.cpp
hipcc -o $@ $<
# use --keep to inspect the generated assembly code
env HIP_PLATFORM=nvidia hipcc -o $@ $<

.PHONY: clean
clean:
Expand Down
2 changes: 1 addition & 1 deletion gpu/rocm/setenv.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export HIP_PLATFORM=nvcc
export HIP_PLATFORM=nvidia
export LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH

0 comments on commit 69e39ab

Please sign in to comment.