Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Jul 6, 2017
0 parents commit f223439
Show file tree
Hide file tree
Showing 16 changed files with 36,578 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
benchmark
2 changes: 2 additions & 0 deletions .ycm_extra_conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def FlagsForFile( filename, **kwargs ):
return {'flags': [ '-x', '-Wall', '-Wextra', '-Werror', '-I/opt/rocm/include','-I/opt/rocm/hip/include']}
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ROCM_PATH?= $(wildcard /opt/rocm)
HIP_PATH?= $(wildcard /opt/rocm/hip)
HIPCC=$(HIP_PATH)/bin/hipcc
INCLUDE_DIRS=-I$(HIP_PATH)/include -I$(ROCM_PATH)/include
LD_FLAGS=-L$(ROCM_PATH)/lib -L$(ROCM_PATH)/opencl/lib/x86_64 -lMIOpen -lOpenCL
TARGET=--amdgpu-target=gfx900

HIPCC_FLAGS=-g $(CXXFLAGS) $(TARGET) $(INCLUDE_DIRS)

all: benchmark

benchmark: main.cpp
$(HIPCC) $(HIPCC_FLAGS) main.cpp $(LD_FLAGS) -o $@

clean:
rm -f *.o *.out benchmark
Loading

0 comments on commit f223439

Please sign in to comment.