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

[SYCLomatic] Update the include file for oneMKL since it has renamed to oneMath #2575

Open
wants to merge 1 commit into
base: SYCLomatic
Choose a base branch
from
Open
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
3 changes: 0 additions & 3 deletions clang/lib/DPCT/AnalysisInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,6 @@ void DpctFileInfo::insertHeader(HeaderType Type, unsigned Offset,
insertHeader(HT_DPL_Execution);
insertHeader(HT_DPL_Algorithm);
break;
case HT_MKL_RNG:
insertHeader(HT_MKL_Mkl);
break;
case HT_DPCT_CodePin_CUDA:
case HT_DPCT_CodePin_SYCL: {
OS << getNL();
Expand Down
3 changes: 0 additions & 3 deletions clang/lib/DPCT/RulesInclude/HeaderTypes.inc
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ ONEDPL_HEADER(Async, "<oneapi/dpl/async>")
ONEDPL_HEADER(Memory, "<oneapi/dpl/memory>")
ONEDPL_HEADER(Random, "<oneapi/dpl/random>")

MKL_HEADER(Mkl, "<oneapi/mkl.hpp>")
MKL_HEADER(RNG, "<oneapi/mkl/rng/device.hpp>")

DPCT_HEADER(Dpct, "<dpct/dpct.hpp>")
DPCT_HEADER(DPL_Utils, "<dpct/dpl_utils.hpp>")
DPCT_HEADER(FFT_Utils, "<dpct/fft_utils.hpp>")
Expand Down
4 changes: 4 additions & 0 deletions clang/runtime/dpct-rt/include/dpct/dnnl_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@

#include <oneapi/dnnl/dnnl.hpp>
#include <oneapi/dnnl/dnnl_sycl.hpp>
#ifdef __INTEL_MKL__
#include <oneapi/mkl/rng/device.hpp>
#else
#include <oneapi/math/rng/device.hpp>
#endif

#include <algorithm>
#include <list>
Expand Down
4 changes: 4 additions & 0 deletions clang/runtime/dpct-rt/include/dpct/lib_common_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@

#include "compat_service.hpp"

#ifdef __INTEL_MKL__
#include <oneapi/mkl.hpp>
#else
#include <oneapi/math.hpp>
#endif

namespace dpct {
namespace detail {
Expand Down
4 changes: 4 additions & 0 deletions clang/runtime/dpct-rt/include/dpct/rng_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
#include "compat_service.hpp"
#include "lib_common_utils.hpp"

#ifdef __INTEL_MKL__
#include <oneapi/mkl/rng/device.hpp>
#else
#include <oneapi/math/rng/device.hpp>
#endif

namespace dpct {
namespace rng {
Expand Down