blob: c7f4b2656edbc605eb2ee24530086c4cca44abdc [file] [log] [blame]
HIP_PATH?= /opt/rocm/hip
HIPCC=$(HIP_PATH)/bin/hipcc
BIN_DIR?= ./bin
square: $(BIN_DIR)/square
$(BIN_DIR)/square: square.cpp $(BIN_DIR)
$(HIPCC) --amdgpu-target=gfx801,gfx803,gfx900 $(CXXFLAGS) square.cpp -o $(BIN_DIR)/square
$(BIN_DIR):
mkdir -p $(BIN_DIR)
clean:
rm -rf $(BIN_DIR)
.PHONY: square clean