File tree 19 files changed +50
-33
lines changed
DirectProgramming/C++SYCL
ParallelPatterns/PrefixSum
SpectralMethods/DiscreteCosineTransform
block_cholesky_decomposition
random_sampling_without_replacement
sparse_conjugate_gradient
19 files changed +50
-33
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5)
3
3
4
4
5
5
if (WIN32 )
6
- set (CMAKE_CXX_COMPILER "dpcpp -cl" )
6
+ set (CMAKE_CXX_COMPILER "icx -cl" )
7
7
else ()
8
8
set (CMAKE_CXX_COMPILER "icpx" )
9
9
endif ()
Original file line number Diff line number Diff line change 2
2
cmake_minimum_required (VERSION 3.5)
3
3
4
4
if (WIN32 )
5
- set (CMAKE_CXX_COMPILER "dpcpp -cl" )
5
+ set (CMAKE_CXX_COMPILER "icx -cl" )
6
6
else ()
7
7
set (CMAKE_CXX_COMPILER "icpx" )
8
8
endif ()
Original file line number Diff line number Diff line change 1
1
if (WIN32 )
2
- set (CMAKE_CXX_COMPILER "dpcpp -cl" )
3
- set (CMAKE_C_COMPILER "dpcpp -cl" )
2
+ set (CMAKE_CXX_COMPILER "icx -cl" )
3
+ set (CMAKE_C_COMPILER "icx -cl" )
4
4
else ()
5
5
set (CMAKE_CXX_COMPILER "icpx" )
6
6
endif ()
@@ -9,7 +9,7 @@ if(NOT DEFINED ${CMAKE_BUILD_TYPE})
9
9
set (CMAKE_BUILD_TYPE "RELEASE" )
10
10
endif ()
11
11
if ( CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
12
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g" )
12
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsycl " )
13
13
endif ()
14
14
cmake_minimum_required (VERSION 3.4)
15
15
project (NBODY)
Original file line number Diff line number Diff line change 2
2
cmake_minimum_required (VERSION 3.5)
3
3
4
4
if (WIN32 )
5
- set (CMAKE_CXX_COMPILER "dpcpp " )
5
+ set (CMAKE_CXX_COMPILER "icx-cl " )
6
6
else ()
7
7
set (CMAKE_CXX_COMPILER "icpx" )
8
8
endif ()
Original file line number Diff line number Diff line change 1
1
if (WIN32 )
2
- set (CMAKE_CXX_COMPILER "dpcpp-cl" )
2
+ set (CMAKE_CXX_COMPILER "icx-cl" )
3
+ set (CMAKE_CXX_FLAGS "fsycl" )
3
4
else ()
4
5
set (CMAKE_CXX_COMPILER "icpx" )
5
6
endif ()
Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ run_all: maxloc_operator.exe maxloc_implicit.exe maxloc_buffered.exe maxloc_usm.
11
11
.\m axloc_usm
12
12
13
13
maxloc_operator.exe : maxloc_operator.cpp
14
- dpcpp maxloc_operator.cpp /Femaxloc_operator.exe
14
+ icx-cl -fsycl maxloc_operator.cpp /Femaxloc_operator.exe
15
15
16
16
maxloc_implicit.exe : maxloc_implicit.cpp
17
- dpcpp maxloc_implicit.cpp /EHsc /Femaxloc_implicit.exe
17
+ icx-cl -fsycl maxloc_implicit.cpp /EHsc /Femaxloc_implicit.exe
18
18
19
19
maxloc_buffered.exe : maxloc_buffered.cpp
20
- dpcpp maxloc_buffered.cpp /EHsc /Femaxloc_buffered.exe
20
+ icx-cl -fsycl maxloc_buffered.cpp /EHsc /Femaxloc_buffered.exe
21
21
22
22
maxloc_usm.exe : maxloc_usm.cpp
23
- dpcpp maxloc_usm.cpp /EHsc /Femaxloc_usm.exe
23
+ icx-cl -fsycl maxloc_usm.cpp /EHsc /Femaxloc_usm.exe
24
24
25
25
clean :
26
26
del /q maxloc_operator.exe maxloc_implicit.exe maxloc_buffered.exe maxloc_usm.exe
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ LIBS = OpenCL.lib
21
21
all : black_scholes.run
22
22
23
23
black_scholes.exe : black_scholes.cpp
24
- dpcpp black_scholes.cpp $(CFLAGS ) $(LIBS ) -o black_scholes.exe
24
+ icx-cl -fsycl black_scholes.cpp $(CFLAGS ) $(LIBS ) -o black_scholes.exe
25
25
26
26
black_scholes.run : black_scholes.exe
27
27
.\b lack_scholes.exe $(N )
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ all: factor.exe solve.exe
7
7
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
8
8
9
9
factor.exe : factor.cpp dpbltrf.cpp auxi.cpp
10
- dpcpp factor.cpp dpbltrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS )
10
+ icx-cl -fsycl factor.cpp dpbltrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS )
11
11
12
12
solve.exe : solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp
13
- dpcpp solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS )
13
+ icx-cl -fsycl solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS )
14
14
15
15
clean :
16
16
del /q factor.exe factor.exp factor.lib solve.exe solve.exp solve.lib
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ all: factor.exe solve.exe
7
7
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
8
8
9
9
factor.exe : factor.cpp dgeblttrf.cpp auxi.cpp
10
- dpcpp factor.cpp dgeblttrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS )
10
+ icx-cl -fsycl factor.cpp dgeblttrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS )
11
11
12
12
solve.exe : solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp
13
- dpcpp solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS )
13
+ icx-cl -fsycl solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS )
14
14
15
15
clean :
16
16
del /q factor.exe factor.exp factor.lib solve.exe solve.exp solve.lib
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run: computed_tomography.exe
10
10
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
11
11
12
12
computed_tomography.exe : computed_tomography.cpp
13
- dpcpp computed_tomography.cpp /Fecomputed_tomography.exe $(DPCPP_OPTS )
13
+ icx-cl -fsycl computed_tomography.cpp /Fecomputed_tomography.exe $(DPCPP_OPTS )
14
14
15
15
clean :
16
16
del /q computed_tomography.exe computed_tomography.exp computed_tomography.lib
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ run_all: fcorr_1d_buff.exe fcorr_1d_usm.exe
12
12
DPCPP_OPTS =-DMKL_ILP64 -I"%MKLROOT%\include" /Qmkl sycl.lib OpenCL.lib /EHsc
13
13
14
14
fcorr_1d_buff.exe : fcorr_1d_buffers.cpp
15
- dpcpp fcorr_1d_buffers.cpp /Fefcorr_1d_buff.exe $(DPCPP_OPTS )
15
+ icx-cl -fsycl fcorr_1d_buffers.cpp /Fefcorr_1d_buff.exe $(DPCPP_OPTS )
16
16
17
17
fcorr_1d_usm.exe : fcorr_1d_usm.cpp
18
- dpcpp fcorr_1d_usm.cpp /Fefcorr_1d_usm.exe $(DPCPP_OPTS )
18
+ icx-cl -fsycl fcorr_1d_usm.cpp /Fefcorr_1d_usm.exe $(DPCPP_OPTS )
19
19
20
20
fcorr_2d_usm.exe : fcorr_2d_usm.cpp
21
- dpcpp fcorr_2d_usm.cpp /Fefcorr_2d_usm.exe $(DPCPP_OPTS )
21
+ icx-cl -fsycl fcorr_2d_usm.cpp /Fefcorr_2d_usm.exe $(DPCPP_OPTS )
22
22
23
23
clean :
24
24
del /q fcorr_1d_buff.exe fcorr_1d_usm.exe fcorr_2d_usm.exe
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run: matrix_mul_mkl.exe
10
10
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
11
11
12
12
matrix_mul_mkl.exe : matrix_mul_mkl.cpp
13
- dpcpp matrix_mul_mkl.cpp /Fematrix_mul_mkl.exe $(DPCPP_OPTS )
13
+ icx-cl -fsycl matrix_mul_mkl.cpp /Fematrix_mul_mkl.exe $(DPCPP_OPTS )
14
14
15
15
clean :
16
16
del /q matrix_mul_mkl.exe matrix_mul_mkl.exp matrix_mul_mkl.lib
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ run: mc_pi.exe mc_pi_usm.exe mc_pi_device_api.exe
12
12
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib
13
13
14
14
mc_pi.exe : mc_pi.cpp
15
- dpcpp mc_pi.cpp /Femc_pi.exe $(DPCPP_OPTS )
15
+ icx-cl -fsycl mc_pi.cpp /Femc_pi.exe $(DPCPP_OPTS )
16
16
17
17
mc_pi_usm.exe : mc_pi_usm.cpp
18
- dpcpp mc_pi_usm.cpp /Femc_pi_usm.exe $(DPCPP_OPTS )
18
+ icx-cl -fsycl mc_pi_usm.cpp /Femc_pi_usm.exe $(DPCPP_OPTS )
19
19
20
20
mc_pi_device_api.exe : mc_pi_device_api.cpp
21
- dpcpp mc_pi_device_api.cpp /Femc_pi_device_api.exe $(DPCPP_OPTS )
21
+ icx-cl -fsycl mc_pi_device_api.cpp /Femc_pi_device_api.exe $(DPCPP_OPTS )
22
22
23
23
clean :
24
24
del /q mc_pi.exe mc_pi_usm.exe mc_pi_device_api.exe
Original file line number Diff line number Diff line change @@ -12,15 +12,26 @@ run: lottery.exe lottery_usm.exe lottery_device_api.exe
12
12
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib
13
13
14
14
lottery.exe : lottery.cpp
15
- dpcpp lottery.cpp /Felottery.exe $(DPCPP_OPTS )
15
+ icx-cl -fsycl lottery.cpp /Felottery.exe $(DPCPP_OPTS )
16
16
17
17
lottery_usm.exe : lottery_usm.cpp
18
- dpcpp lottery_usm.cpp /Felottery_usm.exe $(DPCPP_OPTS )
18
+ icx-cl -fsycl lottery_usm.cpp /Felottery_usm.exe $(DPCPP_OPTS )
19
19
20
20
lottery_device_api.exe : lottery_device_api.cpp
21
- dpcpp lottery_device_api.cpp /Felottery_device_api.exe $(DPCPP_OPTS )
21
+ icx-cl -fsycl lottery_device_api.cpp /Felottery_device_api.exe $(DPCPP_OPTS )
22
22
23
23
clean :
24
24
del /q lottery.exe lottery_usm.exe lottery_device_api.exe
25
25
26
26
pseudo : clean run all
27
+
28
+ # DPCPP_OPTS = $(MKL_COPTS) -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations $(MKL_LIBS)
29
+
30
+ # lottery: lottery.cpp
31
+ # icpx $< -fsycl -o $@ $(DPCPP_OPTS)
32
+
33
+ # lottery_usm: lottery_usm.cpp
34
+ # icpx $< -fsycl -o $@ $(DPCPP_OPTS)
35
+
36
+ # lottery_device_api: lottery_device_api.cpp
37
+ # icpx $< -fsycl -o $@ $(DPCPP_OPTS)
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ run: sparse_cg.exe
10
10
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
11
11
12
12
sparse_cg.exe : sparse_cg.cpp
13
- dpcpp sparse_cg.cpp /Fesparse_cg.exe $(DPCPP_OPTS )
13
+ icx-cl -fsycl sparse_cg.cpp /Fesparse_cg.exe $(DPCPP_OPTS )
14
14
15
15
clean :
16
16
del /q sparse_cg.exe sparse_cg.exp sparse_cg.lib
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ run: t_test.exe t_test_usm.exe
11
11
DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib
12
12
13
13
t_test.exe : t_test.cpp
14
- dpcpp t_test.cpp /Fet_test.exe $(DPCPP_OPTS )
14
+ icx-cl -fsycl t_test.cpp /Fet_test.exe $(DPCPP_OPTS )
15
15
16
16
t_test_usm.exe : t_test_usm.cpp
17
- dpcpp t_test_usm.cpp /Fet_test_usm.exe $(DPCPP_OPTS )
17
+ icx-cl -fsycl t_test_usm.cpp /Fet_test_usm.exe $(DPCPP_OPTS )
18
18
19
19
clean :
20
20
del /q t_test.exe t_test_usm.exe
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4)
2
2
3
3
if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
4
- set (CMAKE_CXX_COMPILER "dpcpp-cl" )
4
+ set (CMAKE_CXX_COMPILER "icx-cl" )
5
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
5
6
else ()
6
7
set (CMAKE_CXX_COMPILER "icpx" )
7
8
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4)
2
2
3
3
if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
4
- set (CMAKE_CXX_COMPILER "dpcpp-cl" )
4
+ set (CMAKE_CXX_COMPILER "icx-cl" )
5
+ set (CMAKE_CXX_FLAGS "fsycl" )
6
+
5
7
else ()
6
8
set (CMAKE_CXX_COMPILER "icpx" )
7
9
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.4)
2
2
3
3
if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
4
- set (CMAKE_CXX_COMPILER "dpcpp-cl" )
4
+ set (CMAKE_CXX_COMPILER "icx-cl" )
5
+ set (CMAKE_CXX_FLAGS "fsycl" )
6
+
5
7
else ()
6
8
set (CMAKE_CXX_COMPILER "icpx" )
7
9
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl" )
You can’t perform that action at this time.
0 commit comments