File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 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)
33
44
55if (WIN32 )
6- set (CMAKE_CXX_COMPILER "dpcpp -cl" )
6+ set (CMAKE_CXX_COMPILER "icx -cl" )
77else ()
88 set (CMAKE_CXX_COMPILER "icpx" )
99endif ()
Original file line number Diff line number Diff line change 22cmake_minimum_required (VERSION 3.5 )
33
44if (WIN32 )
5- set (CMAKE_CXX_COMPILER "dpcpp -cl" )
5+ set (CMAKE_CXX_COMPILER "icx -cl" )
66else ()
77 set (CMAKE_CXX_COMPILER "icpx" )
88endif ()
Original file line number Diff line number Diff line change 11if (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" )
44else ()
55 set (CMAKE_CXX_COMPILER "icpx" )
66endif ()
@@ -9,7 +9,7 @@ if(NOT DEFINED ${CMAKE_BUILD_TYPE})
99 set (CMAKE_BUILD_TYPE "RELEASE" )
1010endif ()
1111if ( CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
12- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g" )
12+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsycl " )
1313endif ()
1414cmake_minimum_required (VERSION 3.4 )
1515project (NBODY)
Original file line number Diff line number Diff line change 22cmake_minimum_required (VERSION 3.5 )
33
44if (WIN32 )
5- set (CMAKE_CXX_COMPILER "dpcpp " )
5+ set (CMAKE_CXX_COMPILER "icx-cl " )
66else ()
77 set (CMAKE_CXX_COMPILER "icpx" )
88endif ()
Original file line number Diff line number Diff line change 11if (WIN32 )
2- set (CMAKE_CXX_COMPILER "dpcpp-cl" )
2+ set (CMAKE_CXX_COMPILER "icx-cl" )
3+ set (CMAKE_CXX_FLAGS "fsycl" )
34else ()
45 set (CMAKE_CXX_COMPILER "icpx" )
56endif ()
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.
1111 .\m axloc_usm
1212
1313maxloc_operator.exe : maxloc_operator.cpp
14- dpcpp maxloc_operator.cpp /Femaxloc_operator.exe
14+ icx-cl -fsycl maxloc_operator.cpp /Femaxloc_operator.exe
1515
1616maxloc_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
1818
1919maxloc_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
2121
2222maxloc_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
2424
2525clean :
2626 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
2121all : black_scholes.run
2222
2323black_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
2525
2626black_scholes.run : black_scholes.exe
2727 .\b lack_scholes.exe $(N )
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ all: factor.exe solve.exe
77DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
88
99factor.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 )
1111
1212solve.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 )
1414
1515clean :
1616 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
77DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
88
99factor.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 )
1111
1212solve.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 )
1414
1515clean :
1616 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
1010DPCPP_OPTS =/I"$(MKLROOT ) \include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib
1111
1212computed_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 )
1414
1515clean :
1616 del /q computed_tomography.exe computed_tomography.exp computed_tomography.lib
You can’t perform that action at this time.
0 commit comments