-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (21 loc) · 956 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cmake_minimum_required(VERSION 3.15)
project(opencl_fun)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fopenmp")
add_executable(opencl_fun_a_plus_b main_a_plus_b.c)
target_link_libraries(opencl_fun_a_plus_b OpenCL)
add_executable(opencl_fun_array_sum main_array_sum.c)
target_link_libraries(opencl_fun_array_sum OpenCL)
add_executable(opencl_fun_gemm1 gemm1.c)
target_link_libraries(opencl_fun_gemm1 OpenCL)
add_executable(opencl_fun_gemm2 gemm2.c)
target_link_libraries(opencl_fun_gemm2 OpenCL)
add_executable(opencl_fun_gemm3 gemm3.c)
target_link_libraries(opencl_fun_gemm3 OpenCL)
add_executable(opencl_fun_gemm4 gemm4.c)
target_link_libraries(opencl_fun_gemm4 OpenCL)
add_executable(opencl_fun_parallel_scan par_scan.c)
target_link_libraries(opencl_fun_parallel_scan OpenCL -lm)
add_executable(opencl_fun_parallel_scan2 par_scan2.c)
target_link_libraries(opencl_fun_parallel_scan2 OpenCL -lm)