Skip to content

Commit 909c172

Browse files
committed
[oneMKL] align qmkl option and threading in all samples
1 parent 3f2236b commit 909c172

File tree

16 files changed

+18
-18
lines changed

16 files changed

+18
-18
lines changed

Libraries/oneMKL/binomial/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ all: binomial_sycl
22

33
init_on_host ?= 0
44

5-
MKL_COPTS = -DMKL_ILP64 -qmkl=sequential -qmkl-sycl-impl=rng
5+
MKL_COPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl=rng
66

77
binomial_sycl: src/binomial_sycl.cpp src/binomial_main.cpp src/binomial.hpp
88
icpx -fsycl -O3 -DSMALL_OPT_N=0 -DVERBOSE=1 -DREPORT_COLD=1 -DREPORT_WARM=1 -DINIT_ON_HOST=$(init_on_host) $(MKL_COPTS) -o $@ src/binomial_main.cpp src/binomial_sycl.cpp

Libraries/oneMKL/binomial/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ all: binomial_sycl.exe
44
INIT_ON_HOST=/DINIT_ON_HOST=1
55
!endif
66

7-
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) -fsycl -qmkl -qmkl-sycl-impl=rng -lOpenCL
7+
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 $(INIT_ON_HOST) -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
88

99
binomial_sycl.exe: src\binomial_sycl.cpp src\binomial_main.cpp src\binomial.hpp
10-
icpx $(DPCPP_OPTS) /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe
10+
icx $(DPCPP_OPTS) /DVERBOSE=1 /DSMALL_OPT_N=0 /DREPORT_COLD=1 /DREPORT_WARM=1 src\binomial_sycl.cpp src\binomial_main.cpp /obinomial_sycl.exe
1111

1212
clean:
1313
del /q binomial_sycl.exe

Libraries/oneMKL/black_scholes/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ all: black_scholes_sycl
77

88
init_on_host ?= 0
99

10-
MKL_COPTS = -DMKL_ILP64 -qmkl=sequential -qmkl-sycl-impl=rng
10+
MKL_COPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl=rng
1111

1212
black_scholes_sycl: src/black_scholes_sycl.cpp
1313
icpx -O3 -g -fsycl $(MKL_COPTS) -DVERBOSE=1 -DSMALL_OPT_N=0 -DINIT_ON_HOST=$(init_on_host) -o $@ src/black_scholes_sycl.cpp

Libraries/oneMKL/black_scholes/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ all: black_scholes_sycl.exe
44
INIT_ON_HOST=/DINIT_ON_HOST=1
55
!endif
66

7-
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) -fsycl -qmkl -qmkl-sycl-impl=rng -lOpenCL
7+
DPCPP_OPTS=-O3 /I"$(MKLROOT)\include" /DMKL_ILP64 /DVERBOSE=1 /DSMALL_OPT_N=0 $(INIT_ON_HOST) -fsycl /Qmkl /Qmkl-sycl-impl=rng OpenCL.lib
88

99
black_scholes_sycl.exe: src\black_scholes_sycl.cpp
10-
icpx $(DPCPP_OPTS) src\black_scholes_sycl.cpp /oblack_scholes_sycl.exe
10+
icx $(DPCPP_OPTS) src\black_scholes_sycl.cpp /oblack_scholes_sycl.exe
1111

1212
clean:
1313
del /q black_scholes_sycl.exe

Libraries/oneMKL/block_cholesky_decomposition/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: factor solve
44
./factor
55
./solve
66

7-
MKL_COPTS = -DMKL_ILP64 -qmkl=sequential -qmkl-sycl-impl="blas,lapack"
7+
MKL_COPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl="blas,lapack"
88

99
factor: factor.cpp dpbltrf.cpp auxi.cpp
1010
icpx $^ -o $@ -fsycl -fsycl-device-code-split=per_kernel $(MKL_COPTS)

Libraries/oneMKL/block_lu_decomposition/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ all: factor solve
44
./factor
55
./solve
66

7-
MKL_COPTS = -DMKL_ILP64 -qmkl=sequential -qmkl-sycl-impl="blas,lapack"
7+
MKL_COPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl="blas,lapack"
88

99
factor: factor.cpp dgeblttrf.cpp auxi.cpp
1010
icpx $^ -o $@ -fsycl -fsycl-device-code-split=per_kernel $(MKL_COPTS)

Libraries/oneMKL/computed_tomography/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ all: run
77
run: computed_tomography
88
./computed_tomography 400 400 input.bmp radon.bmp restored.bmp
99

10-
MKL_COPTS = -DMKL_ILP64 -qmkl=sequential -qmkl-sycl-impl=dft
10+
MKL_COPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl=dft
1111

1212
DPCPP_OPTS = $(MKL_COPTS) -fsycl-device-code-split=per_kernel
1313

Libraries/oneMKL/fourier_correlation/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ run_all: fcorr_1d_buff fcorr_1d_usm fcorr_2d_usm
99
./fcorr_1d_usm 4096
1010
./fcorr_2d_usm
1111

12-
DPCPP_OPTS = -DMKL_ILP64 -qmkl=parallel -qmkl-sycl-impl="blas,dft,rng,vm"
12+
DPCPP_OPTS = -DMKL_ILP64 -qmkl -qmkl-sycl-impl="blas,dft,rng,vm"
1313

1414
fcorr_1d_buff: fcorr_1d_buffers.cpp
1515
icpx $< -fsycl -o $@ $(DPCPP_OPTS)

Libraries/oneMKL/guided_cuBLAS_examples_SYCL_Migration/02_sycl_dpct_migrated/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -std=c++17 -qmkl")
2-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -qmkl=sequential -qmkl-sycl-impl=blas")
2+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -qmkl -qmkl-sycl-impl=blas")
33

44
include_directories(${CMAKE_SOURCE_DIR}/02_sycl_dpct_migrated/Common/)
55
add_subdirectory("Level-1")

Libraries/oneMKL/guided_cuRAND_examples_SYCL_migration/02_sycl_dpct_migrated/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl -std=c++17 -qmkl")
2-
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -qmkl=sequential -qmkl-sycl-impl=rng")
2+
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -qmkl -qmkl-sycl-impl=rng")
33

44
include_directories(${CMAKE_SOURCE_DIR}/02_sycl_dpct_migrated/Common/)
55
add_subdirectory("mrg32k3a")

0 commit comments

Comments
 (0)