From f9f9ba7814c1adc6f93036f9862720cd1f071dc4 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Mon, 17 Feb 2025 18:34:19 +0000 Subject: [PATCH] adding makefile Former-commit-id: d5044a82473c88b227b85cee903290ee21ec0180 --- examples/gpu/python_opencl/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 examples/gpu/python_opencl/Makefile diff --git a/examples/gpu/python_opencl/Makefile b/examples/gpu/python_opencl/Makefile new file mode 100644 index 000000000..0b448c395 --- /dev/null +++ b/examples/gpu/python_opencl/Makefile @@ -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