-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include DPCT headers from system installation and remove the local copy
- Loading branch information
Showing
13 changed files
with
37 additions
and
4,514 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
if (WIN32) | ||
find_path( dpct_INCLUDE_DIR | ||
NAMES | ||
dpct/dpct.hpp | ||
PATHS | ||
${dpct_LOCATION}/include | ||
$ENV{dpct_LOCATION}/include | ||
$ENV{DPCT_BUNDLE_ROOT}/include | ||
$ENV{ONEAPI_ROOT}/dpcpp-ct/latest/include | ||
$ENV{PROGRAMFILES}/include | ||
NO_DEFAULT_PATH | ||
DOC "The directory where dpct/dpct.hpp resides" | ||
) | ||
else() | ||
find_path( dpct_INCLUDE_DIR | ||
NAMES | ||
dpct/dpct.hpp | ||
PATHS | ||
${dpct_LOCATION}/include | ||
$ENV{dpct_LOCATION}/include | ||
$ENV{DPCT_BUNDLE_ROOT}/include | ||
$ENV{ONEAPI_ROOT}/dpcpp-ct/latest/include | ||
/opt/intel/oneapi/dpcpp-ct/latest/include | ||
/usr/include | ||
/usr/local/include | ||
/sw/include | ||
/opt/local/include | ||
NO_DEFAULT_PATH | ||
DOC "The directory where dpct/dpct.hpp resides" | ||
) | ||
endif () | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args( dpct REQUIRED_VARS dpct_INCLUDE_DIR ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.