Skip to content
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
6 changes: 2 additions & 4 deletions cmake/FindDPCPP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@ unset(missingDpcppComponents)
find_path(
SYCL_INCLUDE_DIRS
NAMES
sycl.hpp
sycl/sycl.hpp
PATHS
ENV SYCL_ROOT
/opt/intel/oneapi/compiler/latest/linux
${SYCL_ROOT}
PATH_SUFFIXES
include/sycl
include/CL
include/sycl/CL
include
)

find_library(
Expand Down
2 changes: 1 addition & 1 deletion examples/cpp/20_native_dpcpp_kernel/addVectors.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>

extern "C" void addVectors(::sycl::queue *q,
::sycl::nd_range<3> *ndrange,
Expand Down
3 changes: 1 addition & 2 deletions src/occa/internal/lang/modes/dpcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,13 +154,12 @@ namespace occa
return "";
}

// @note: As of SYCL 2020 this will need to change from `CL/sycl.hpp` to `sycl.hpp`
void dpcppParser::setupHeaders()
{
root.addFirst(
*(new directiveStatement(
&root,
directiveToken(root.source->origin, "include <CL/sycl.hpp>\n using namespace sycl;\n"))));
directiveToken(root.source->origin, "include <sycl/sycl.hpp>\n using namespace sycl;\n"))));
}

void dpcppParser::addExtensions()
Expand Down
2 changes: 1 addition & 1 deletion src/occa/internal/modes/dpcpp/polyfill.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define OCCA_MODES_DPCPP_POLYFILL_HEADER

#if OCCA_DPCPP_ENABLED
#include <sycl.hpp>
#include <sycl/sycl.hpp>
#else
#include <cstdint>
#include <vector>
Expand Down