Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions help_function/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def build_test():
if (test_config.current_test in blas_cases) or (test_config.current_test in fft_cases) or (
test_config.current_test in lapack_cases) or (test_config.current_test in rng_cases) or (
test_config.current_test in oneDNN_related) or (test_config.current_test in sparse_cases):
mkl_opts = []
if platform.system() == "Linux":
if test_config.device_filter == "cuda:gpu" :
mkl_opts = test_config.mkl_cuda_link_lin
elif platform.system() == "Linux":
mkl_opts = test_config.mkl_link_opt_lin
else:
mkl_opts = test_config.mkl_link_opt_win
Expand Down
2 changes: 2 additions & 0 deletions test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
mkl_link_opt_lin = ["-lmkl_intel_ilp64", "-lmkl_sequential", "-lmkl_core",
"-lOpenCL", "-lmkl_sycl", "-lpthread", "-ldl"]

mkl_cuda_link_lin = ["-lonemkl", "-lonemkl_blas_cublas", "-lpthread", "-ldl", "-lOpenCL"]

mkl_link_opt_win = ["mkl_sycl_dll.lib", "mkl_intel_ilp64_dll.lib", "mkl_sequential_dll.lib", "mkl_core_dll.lib", "OpenCL.lib"]

mkl_comp_opt = ["-DMKL_ILP64"]
Expand Down