diff --git a/DirectProgramming/C++SYCL/GraphTraversal/bitonic-sort/CMakeLists.txt b/DirectProgramming/C++SYCL/GraphTraversal/bitonic-sort/CMakeLists.txt index 2406eee398..657b7f10b4 100644 --- a/DirectProgramming/C++SYCL/GraphTraversal/bitonic-sort/CMakeLists.txt +++ b/DirectProgramming/C++SYCL/GraphTraversal/bitonic-sort/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5) if(WIN32) - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") else() set(CMAKE_CXX_COMPILER "icpx") endif() diff --git a/DirectProgramming/C++SYCL/GraphTraversal/hidden-markov-models/CMakeLists.txt b/DirectProgramming/C++SYCL/GraphTraversal/hidden-markov-models/CMakeLists.txt index 07f1b53beb..d603c80a1d 100644 --- a/DirectProgramming/C++SYCL/GraphTraversal/hidden-markov-models/CMakeLists.txt +++ b/DirectProgramming/C++SYCL/GraphTraversal/hidden-markov-models/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5) if(WIN32) - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") else() set(CMAKE_CXX_COMPILER "icpx") endif() diff --git a/DirectProgramming/C++SYCL/N-BodyMethods/Nbody/CMakeLists.txt b/DirectProgramming/C++SYCL/N-BodyMethods/Nbody/CMakeLists.txt index 918b7ccc18..0244b610f7 100644 --- a/DirectProgramming/C++SYCL/N-BodyMethods/Nbody/CMakeLists.txt +++ b/DirectProgramming/C++SYCL/N-BodyMethods/Nbody/CMakeLists.txt @@ -1,6 +1,6 @@ if(WIN32) - set(CMAKE_CXX_COMPILER "dpcpp-cl") - set(CMAKE_C_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") + set(CMAKE_C_COMPILER "icx-cl") else() set(CMAKE_CXX_COMPILER "icpx") endif() @@ -9,7 +9,7 @@ if(NOT DEFINED ${CMAKE_BUILD_TYPE}) set(CMAKE_BUILD_TYPE "RELEASE") endif() if( CMAKE_BUILD_TYPE STREQUAL "DEBUG" ) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsycl") endif() cmake_minimum_required (VERSION 3.4) project (NBODY) diff --git a/DirectProgramming/C++SYCL/ParallelPatterns/PrefixSum/CMakeLists.txt b/DirectProgramming/C++SYCL/ParallelPatterns/PrefixSum/CMakeLists.txt index 2f029ea1d3..f92b84fcea 100644 --- a/DirectProgramming/C++SYCL/ParallelPatterns/PrefixSum/CMakeLists.txt +++ b/DirectProgramming/C++SYCL/ParallelPatterns/PrefixSum/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.5) if(WIN32) - set(CMAKE_CXX_COMPILER "dpcpp") + set(CMAKE_CXX_COMPILER "icx-cl") else() set(CMAKE_CXX_COMPILER "icpx") endif() diff --git a/DirectProgramming/C++SYCL/SpectralMethods/DiscreteCosineTransform/CMakeLists.txt b/DirectProgramming/C++SYCL/SpectralMethods/DiscreteCosineTransform/CMakeLists.txt index eadfad491a..629d29f83a 100644 --- a/DirectProgramming/C++SYCL/SpectralMethods/DiscreteCosineTransform/CMakeLists.txt +++ b/DirectProgramming/C++SYCL/SpectralMethods/DiscreteCosineTransform/CMakeLists.txt @@ -1,5 +1,6 @@ if(WIN32) - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") + set(CMAKE_CXX_FLAGS "fsycl") else() set(CMAKE_CXX_COMPILER "icpx") endif() diff --git a/Libraries/oneDPL/maxloc_reductions/makefile b/Libraries/oneDPL/maxloc_reductions/makefile index cceba3ab28..d8c3681757 100644 --- a/Libraries/oneDPL/maxloc_reductions/makefile +++ b/Libraries/oneDPL/maxloc_reductions/makefile @@ -11,16 +11,16 @@ run_all: maxloc_operator.exe maxloc_implicit.exe maxloc_buffered.exe maxloc_usm. .\maxloc_usm maxloc_operator.exe: maxloc_operator.cpp - dpcpp maxloc_operator.cpp /Femaxloc_operator.exe + icx-cl -fsycl maxloc_operator.cpp /Femaxloc_operator.exe maxloc_implicit.exe: maxloc_implicit.cpp - dpcpp maxloc_implicit.cpp /EHsc /Femaxloc_implicit.exe + icx-cl -fsycl maxloc_implicit.cpp /EHsc /Femaxloc_implicit.exe maxloc_buffered.exe: maxloc_buffered.cpp - dpcpp maxloc_buffered.cpp /EHsc /Femaxloc_buffered.exe + icx-cl -fsycl maxloc_buffered.cpp /EHsc /Femaxloc_buffered.exe maxloc_usm.exe: maxloc_usm.cpp - dpcpp maxloc_usm.cpp /EHsc /Femaxloc_usm.exe + icx-cl -fsycl maxloc_usm.cpp /EHsc /Femaxloc_usm.exe clean: del /q maxloc_operator.exe maxloc_implicit.exe maxloc_buffered.exe maxloc_usm.exe diff --git a/Libraries/oneMKL/black_scholes/makefile b/Libraries/oneMKL/black_scholes/makefile index 0d70807a4c..6c6e5b23c0 100644 --- a/Libraries/oneMKL/black_scholes/makefile +++ b/Libraries/oneMKL/black_scholes/makefile @@ -21,7 +21,7 @@ LIBS = OpenCL.lib all: black_scholes.run black_scholes.exe: black_scholes.cpp - dpcpp black_scholes.cpp $(CFLAGS) $(LIBS) -o black_scholes.exe + icx-cl -fsycl black_scholes.cpp $(CFLAGS) $(LIBS) -o black_scholes.exe black_scholes.run: black_scholes.exe .\black_scholes.exe $(N) diff --git a/Libraries/oneMKL/block_cholesky_decomposition/makefile b/Libraries/oneMKL/block_cholesky_decomposition/makefile index 7659210369..fdd9e9861d 100644 --- a/Libraries/oneMKL/block_cholesky_decomposition/makefile +++ b/Libraries/oneMKL/block_cholesky_decomposition/makefile @@ -7,10 +7,10 @@ all: factor.exe solve.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib factor.exe: factor.cpp dpbltrf.cpp auxi.cpp - dpcpp factor.cpp dpbltrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS) + icx-cl -fsycl factor.cpp dpbltrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS) solve.exe: solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp - dpcpp solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS) + icx-cl -fsycl solve.cpp dpbltrf.cpp dpbltrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS) clean: del /q factor.exe factor.exp factor.lib solve.exe solve.exp solve.lib diff --git a/Libraries/oneMKL/block_lu_decomposition/makefile b/Libraries/oneMKL/block_lu_decomposition/makefile index a2f7bccf02..413dd88292 100644 --- a/Libraries/oneMKL/block_lu_decomposition/makefile +++ b/Libraries/oneMKL/block_lu_decomposition/makefile @@ -7,10 +7,10 @@ all: factor.exe solve.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib factor.exe: factor.cpp dgeblttrf.cpp auxi.cpp - dpcpp factor.cpp dgeblttrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS) + icx-cl -fsycl factor.cpp dgeblttrf.cpp auxi.cpp /Fefactor.exe $(DPCPP_OPTS) solve.exe: solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp - dpcpp solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS) + icx-cl -fsycl solve.cpp dgeblttrf.cpp dgeblttrs.cpp auxi.cpp /Fesolve.exe $(DPCPP_OPTS) clean: del /q factor.exe factor.exp factor.lib solve.exe solve.exp solve.lib diff --git a/Libraries/oneMKL/computed_tomography/makefile b/Libraries/oneMKL/computed_tomography/makefile index 66f028f63a..4805c34750 100644 --- a/Libraries/oneMKL/computed_tomography/makefile +++ b/Libraries/oneMKL/computed_tomography/makefile @@ -10,7 +10,7 @@ run: computed_tomography.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib computed_tomography.exe: computed_tomography.cpp - dpcpp computed_tomography.cpp /Fecomputed_tomography.exe $(DPCPP_OPTS) + icx-cl -fsycl computed_tomography.cpp /Fecomputed_tomography.exe $(DPCPP_OPTS) clean: del /q computed_tomography.exe computed_tomography.exp computed_tomography.lib diff --git a/Libraries/oneMKL/fourier_correlation/makefile b/Libraries/oneMKL/fourier_correlation/makefile index 4ef323b3f4..cca123d5b7 100644 --- a/Libraries/oneMKL/fourier_correlation/makefile +++ b/Libraries/oneMKL/fourier_correlation/makefile @@ -12,13 +12,13 @@ run_all: fcorr_1d_buff.exe fcorr_1d_usm.exe DPCPP_OPTS=-DMKL_ILP64 -I"%MKLROOT%\include" /Qmkl sycl.lib OpenCL.lib /EHsc fcorr_1d_buff.exe: fcorr_1d_buffers.cpp - dpcpp fcorr_1d_buffers.cpp /Fefcorr_1d_buff.exe $(DPCPP_OPTS) + icx-cl -fsycl fcorr_1d_buffers.cpp /Fefcorr_1d_buff.exe $(DPCPP_OPTS) fcorr_1d_usm.exe: fcorr_1d_usm.cpp - dpcpp fcorr_1d_usm.cpp /Fefcorr_1d_usm.exe $(DPCPP_OPTS) + icx-cl -fsycl fcorr_1d_usm.cpp /Fefcorr_1d_usm.exe $(DPCPP_OPTS) fcorr_2d_usm.exe: fcorr_2d_usm.cpp - dpcpp fcorr_2d_usm.cpp /Fefcorr_2d_usm.exe $(DPCPP_OPTS) + icx-cl -fsycl fcorr_2d_usm.cpp /Fefcorr_2d_usm.exe $(DPCPP_OPTS) clean: del /q fcorr_1d_buff.exe fcorr_1d_usm.exe fcorr_2d_usm.exe diff --git a/Libraries/oneMKL/matrix_mul_mkl/makefile b/Libraries/oneMKL/matrix_mul_mkl/makefile index 9e6ca016f0..3fc6042ec0 100644 --- a/Libraries/oneMKL/matrix_mul_mkl/makefile +++ b/Libraries/oneMKL/matrix_mul_mkl/makefile @@ -10,7 +10,7 @@ run: matrix_mul_mkl.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib matrix_mul_mkl.exe: matrix_mul_mkl.cpp - dpcpp matrix_mul_mkl.cpp /Fematrix_mul_mkl.exe $(DPCPP_OPTS) + icx-cl -fsycl matrix_mul_mkl.cpp /Fematrix_mul_mkl.exe $(DPCPP_OPTS) clean: del /q matrix_mul_mkl.exe matrix_mul_mkl.exp matrix_mul_mkl.lib diff --git a/Libraries/oneMKL/monte_carlo_pi/makefile b/Libraries/oneMKL/monte_carlo_pi/makefile index cb3d68ac9f..2c4f09c6c2 100644 --- a/Libraries/oneMKL/monte_carlo_pi/makefile +++ b/Libraries/oneMKL/monte_carlo_pi/makefile @@ -12,13 +12,13 @@ run: mc_pi.exe mc_pi_usm.exe mc_pi_device_api.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib mc_pi.exe: mc_pi.cpp - dpcpp mc_pi.cpp /Femc_pi.exe $(DPCPP_OPTS) + icx-cl -fsycl mc_pi.cpp /Femc_pi.exe $(DPCPP_OPTS) mc_pi_usm.exe: mc_pi_usm.cpp - dpcpp mc_pi_usm.cpp /Femc_pi_usm.exe $(DPCPP_OPTS) + icx-cl -fsycl mc_pi_usm.cpp /Femc_pi_usm.exe $(DPCPP_OPTS) mc_pi_device_api.exe: mc_pi_device_api.cpp - dpcpp mc_pi_device_api.cpp /Femc_pi_device_api.exe $(DPCPP_OPTS) + icx-cl -fsycl mc_pi_device_api.cpp /Femc_pi_device_api.exe $(DPCPP_OPTS) clean: del /q mc_pi.exe mc_pi_usm.exe mc_pi_device_api.exe diff --git a/Libraries/oneMKL/random_sampling_without_replacement/makefile b/Libraries/oneMKL/random_sampling_without_replacement/makefile index 6ff5ffff98..e15002989c 100644 --- a/Libraries/oneMKL/random_sampling_without_replacement/makefile +++ b/Libraries/oneMKL/random_sampling_without_replacement/makefile @@ -12,15 +12,26 @@ run: lottery.exe lottery_usm.exe lottery_device_api.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib lottery.exe: lottery.cpp - dpcpp lottery.cpp /Felottery.exe $(DPCPP_OPTS) + icx-cl -fsycl lottery.cpp /Felottery.exe $(DPCPP_OPTS) lottery_usm.exe: lottery_usm.cpp - dpcpp lottery_usm.cpp /Felottery_usm.exe $(DPCPP_OPTS) + icx-cl -fsycl lottery_usm.cpp /Felottery_usm.exe $(DPCPP_OPTS) lottery_device_api.exe: lottery_device_api.cpp - dpcpp lottery_device_api.cpp /Felottery_device_api.exe $(DPCPP_OPTS) + icx-cl -fsycl lottery_device_api.cpp /Felottery_device_api.exe $(DPCPP_OPTS) clean: del /q lottery.exe lottery_usm.exe lottery_device_api.exe pseudo: clean run all + +# DPCPP_OPTS = $(MKL_COPTS) -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations $(MKL_LIBS) + +# lottery: lottery.cpp +# icpx $< -fsycl -o $@ $(DPCPP_OPTS) + +# lottery_usm: lottery_usm.cpp +# icpx $< -fsycl -o $@ $(DPCPP_OPTS) + +# lottery_device_api: lottery_device_api.cpp +# icpx $< -fsycl -o $@ $(DPCPP_OPTS) \ No newline at end of file diff --git a/Libraries/oneMKL/sparse_conjugate_gradient/makefile b/Libraries/oneMKL/sparse_conjugate_gradient/makefile index d7ba4e82ad..00d295bf95 100644 --- a/Libraries/oneMKL/sparse_conjugate_gradient/makefile +++ b/Libraries/oneMKL/sparse_conjugate_gradient/makefile @@ -10,7 +10,7 @@ run: sparse_cg.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /EHsc -fsycl-device-code-split=per_kernel OpenCL.lib sparse_cg.exe: sparse_cg.cpp - dpcpp sparse_cg.cpp /Fesparse_cg.exe $(DPCPP_OPTS) + icx-cl -fsycl sparse_cg.cpp /Fesparse_cg.exe $(DPCPP_OPTS) clean: del /q sparse_cg.exe sparse_cg.exp sparse_cg.lib diff --git a/Libraries/oneMKL/student_t_test/makefile b/Libraries/oneMKL/student_t_test/makefile index 574461623f..561c5f0f0c 100644 --- a/Libraries/oneMKL/student_t_test/makefile +++ b/Libraries/oneMKL/student_t_test/makefile @@ -11,10 +11,10 @@ run: t_test.exe t_test_usm.exe DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib t_test.exe: t_test.cpp - dpcpp t_test.cpp /Fet_test.exe $(DPCPP_OPTS) + icx-cl -fsycl t_test.cpp /Fet_test.exe $(DPCPP_OPTS) t_test_usm.exe: t_test_usm.cpp - dpcpp t_test_usm.cpp /Fet_test_usm.exe $(DPCPP_OPTS) + icx-cl -fsycl t_test_usm.cpp /Fet_test_usm.exe $(DPCPP_OPTS) clean: del /q t_test.exe t_test_usm.exe diff --git a/Libraries/oneTBB/tbb-async-sycl/CMakeLists.txt b/Libraries/oneTBB/tbb-async-sycl/CMakeLists.txt index 9f2dd415ba..b510937be6 100644 --- a/Libraries/oneTBB/tbb-async-sycl/CMakeLists.txt +++ b/Libraries/oneTBB/tbb-async-sycl/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required (VERSION 3.4) if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl") else() set(CMAKE_CXX_COMPILER "icpx") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl") diff --git a/Libraries/oneTBB/tbb-resumable-tasks-sycl/CMakeLists.txt b/Libraries/oneTBB/tbb-resumable-tasks-sycl/CMakeLists.txt index f0b7fdfddb..4b3c229a1a 100755 --- a/Libraries/oneTBB/tbb-resumable-tasks-sycl/CMakeLists.txt +++ b/Libraries/oneTBB/tbb-resumable-tasks-sycl/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required (VERSION 3.4) if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") + set(CMAKE_CXX_FLAGS "fsycl") + else() set(CMAKE_CXX_COMPILER "icpx") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl") diff --git a/Libraries/oneTBB/tbb-task-sycl/CMakeLists.txt b/Libraries/oneTBB/tbb-task-sycl/CMakeLists.txt index efaf376b19..2e278395f7 100644 --- a/Libraries/oneTBB/tbb-task-sycl/CMakeLists.txt +++ b/Libraries/oneTBB/tbb-task-sycl/CMakeLists.txt @@ -1,7 +1,9 @@ cmake_minimum_required (VERSION 3.4) if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows") - set(CMAKE_CXX_COMPILER "dpcpp-cl") + set(CMAKE_CXX_COMPILER "icx-cl") + set(CMAKE_CXX_FLAGS "fsycl") + else() set(CMAKE_CXX_COMPILER "icpx") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl")