-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SYCL Compiler Support, main branch (2024.11.05.) (#301)
* Switched to using <sycl/sycl.hpp>. As oneAPI 2025.0.0 treats that as the canonical include, giving warnings about using <CL/sycl.hpp>. * Introduced explicit support for AdaptiveCpp 24.06.0. * Removed the last mentions of <CL/sycl.hpp> and cl::sycl.
- Loading branch information
Showing
36 changed files
with
272 additions
and
248 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# VecMem project, part of the ACTS project (R&D line) | ||
# | ||
# (c) 2022-2024 CERN for the benefit of the ACTS project | ||
# | ||
# Mozilla Public License Version 2.0 | ||
|
||
# Use the standard GNU compiler options for hipSYCL. | ||
include( Platform/Linux-GNU ) | ||
__linux_compiler_gnu( SYCL ) | ||
include( Compiler/GNU ) | ||
__compiler_gnu( SYCL ) | ||
|
||
# Set up the dependency file generation for this platform. Note that SYCL | ||
# compilation only works with Makefile and Ninja generators, so no check is made | ||
# here for the current generator. | ||
set( CMAKE_SYCL_DEPENDS_USE_COMPILER TRUE ) | ||
set( CMAKE_SYCL_DEPFILE_FORMAT gcc ) | ||
|
||
# Set an archive (static library) creation command explicitly for this platform. | ||
set( CMAKE_SYCL_CREATE_STATIC_LIBRARY | ||
"<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>" ) | ||
|
||
# Set the flags controlling the C++ standard used by the SYCL compiler. | ||
set( CMAKE_SYCL17_STANDARD_COMPILE_OPTION "-std=c++17" ) | ||
set( CMAKE_SYCL17_EXTENSION_COMPILE_OPTION "-std=c++17" ) | ||
|
||
set( CMAKE_SYCL20_STANDARD_COMPILE_OPTION "-std=c++20" ) | ||
set( CMAKE_SYCL20_EXTENSION_COMPILE_OPTION "-std=c++20" ) | ||
|
||
set( CMAKE_SYCL23_STANDARD_COMPILE_OPTION "-std=c++23" ) | ||
set( CMAKE_SYCL23_EXTENSION_COMPILE_OPTION "-std=c++23" ) |
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
Oops, something went wrong.