-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge Add icpx support and Deprecate GINKGO_BUILD_DPCPP by GINKGO_BUI…
…LD_SYCL This PR adds the icpx compiler support for DPCPP backend(SYCL) and deprecates `GINKGO_BUILD_DPCPP` in favor of `GINKGO_BUILD_SYCL` If the build uses `GINKGO_BUILD_DPCPP`, it will be copied to `GINKGO_BUILD_SYCL`. If both are specified the same value, show the warning. Otherwise, throw the error. Related PR: #1350
- Loading branch information
Showing
22 changed files
with
142 additions
and
45 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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,20 @@ | ||
# Only for CACHE variable (option) | ||
macro(gko_rename_cache deprecated actual type doc_string) | ||
if(DEFINED ${deprecated}) | ||
if(DEFINED ${actual}) | ||
message("actual ${actual} and deprecated ${deprecated}") | ||
if("${${actual}}" STREQUAL "${${deprecated}}") | ||
# They are the same, so only throw warning | ||
message(WARNING "${deprecated} was deprecated, please only use ${actual} instead.") | ||
else() | ||
# They are different | ||
message(FATAL_ERROR "Both ${deprecated} and ${actual} were specified differently, please only use ${actual} instead.") | ||
endif() | ||
else() | ||
# Only set `deprecated`, move it to `actual`. | ||
message(WARNING "${deprecated} was deprecated, please use ${actual} instead. " | ||
"We copy ${${deprecated}} to ${actual}") | ||
set(${actual} ${${deprecated}} CACHE ${type} "${doc_string}") | ||
endif() | ||
endif() | ||
endmacro() |
Oops, something went wrong.