Add unroll and inline asm cookbook samples

Change-Id: Ie5a0fbb01b7fca82959090d89299533d49e092f1


[ROCm/hip-tests commit: 83472bfa78]
This commit is contained in:
Sandeep Kumar
2017-05-11 11:30:49 +05:30
committed by Maneesh Gupta
parent a485c75155
commit 78789054f0
4 changed files with 389 additions and 0 deletions
@@ -0,0 +1,35 @@
HIP_PATH?= $(wildcard /opt/rocm/hip)
ifeq (,$(HIP_PATH))
HIP_PATH=../../..
endif
HIPCC=$(HIP_PATH)/bin/hipcc
TARGET=hcc
SOURCES = inline_asm.cpp
OBJECTS = $(SOURCES:.cpp=.o)
EXECUTABLE=./inline_asm
.PHONY: test
all: $(EXECUTABLE) test
CXXFLAGS =-g
CXX=$(HIPCC)
$(EXECUTABLE): $(OBJECTS)
$(HIPCC) $(OBJECTS) -o $@
test: $(EXECUTABLE)
$(EXECUTABLE)
clean:
rm -f $(EXECUTABLE)
rm -f $(OBJECTS)
rm -f $(HIP_PATH)/src/*.o