Skip to content

Commit

Permalink
Adding makefile
Browse files Browse the repository at this point in the history
Former-commit-id: 54b01db7d6d7fe782fe0344f2d1b50fb198f8344
  • Loading branch information
khuck committed Nov 4, 2024
1 parent 4738904 commit b2d585f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/gpu/hip/rsmi_supported/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CXXFLAGS += -std=c++11 -O3 -I$(ROCM_PATH)/include
LDFLAGS += -std=c++11 -O3 -L$(ROCM_PATH)/lib -Wl,-rpath,$(ROCM_PATH)/lib -lrocm_smi64

all: supported

HIPCC=amdclang++

supported.o : supported.cpp
$(HIPCC) $(CXXFLAGS) -c $< -o $@

supported: supported.o Makefile
$(HIPCC) $(CXXFLAGS) $< -lm -o $@ $(LDFLAGS)

.PHONY: clean

clean:
rm -f supported *.o profile*

0 comments on commit b2d585f

Please sign in to comment.