Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new link command for mkl on cuda #387

Draft
wants to merge 3 commits into
base: SYCLomatic
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all 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"]

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