Skip to content

Commit

Permalink
adding makefile
Browse files Browse the repository at this point in the history
Former-commit-id: d5044a82473c88b227b85cee903290ee21ec0180
  • Loading branch information
khuck committed Feb 17, 2025
1 parent 185259c commit f9f9ba7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions examples/gpu/python_opencl/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
include ../../../include/Makefile
#TAU_OPENCL_INC=/opt/intel/oneapi/compiler/2021.1-beta10/linux/include/sycl

TAU_OPENCL_LIB=-L$(TAU_OPENCL_INC)/../lib/x86_64 -L$(TAU_OPENCL_INC)/../lib -lOpenCL
#TAU_OPENCL_LIB=-L/opt/intel/oneapi/compiler/2021.1-beta10/linux/lib -lOpenCL
#TAU_CXX=clang++

all: libmatmult.so

libmatmult.so: matmult.o
$(TAU_CXX) -g -o $@ $< $(TAU_OPENCL_LIB) -shared

matmult.o: matmult.cpp
$(TAU_CXX) -I$(TAU_OPENCL_INC) -g -c $< -o $@ -fPIC

clean:
rm -rf libmatmult.so matmult.o profile.*

run:
tau_exec -T serial,cupti -opencl ./matmult

0 comments on commit f9f9ba7

Please sign in to comment.