-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove opencl spv kernels blob header * update tests: avoid running kernels with dynamic allocation * add noassert configuration * add env to select default sycl context by name * add sycl-opencl ci * try to fix build * try to fix build * try to fix build * try to fix build
- Loading branch information
Showing
49 changed files
with
645 additions
and
92,739 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set(CMAKE_C_COMPILER /usr/local/bin/syclcc) | ||
set(CMAKE_CXX_COMPILER /usr/local/bin/syclcc) | ||
|
||
set(CMAKE_C_COMPILER_WORKS 1) | ||
set(CMAKE_CXX_COMPILER_WORKS 1) | ||
|
||
add_compile_options(-W -Wall -Wextra -Werror | ||
-Wno-gnu-string-literal-operator-template | ||
-Wno-unknown-cuda-version | ||
-fopenmp | ||
--acpp-targets="generic" | ||
--acpp-clang=/usr/bin/clang++-14 | ||
) | ||
add_link_options( | ||
--acpp-targets="generic" | ||
--acpp-clang=/usr/bin/clang++-14 | ||
) | ||
# To avoid linking device code with assert | ||
add_compile_definitions(NMTOOLS_NOASSERT NMTOOLS_DISABLE_STL) | ||
link_libraries(rt pthread) |
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
92,604 changes: 0 additions & 92,604 deletions
92,604
include/nmtools/array/eval/opencl/kernels_spv.hpp
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
#ifndef NMTOOLS_PLATFORM_ASSERT_NOASSERT_HPP | ||
#define NMTOOLS_PLATFORM_ASSERT_NOASSERT_HPP | ||
|
||
#define nmtools_assert_optional(condition, message, return_type, ...) \ | ||
if (!(condition)) return return_type{nmtools::meta::Nothing}; | ||
|
||
#define nmtools_make_optional(name, type) \ | ||
using name [[maybe_unused]] = nmtools_maybe<type>; | ||
|
||
#define nmtools_cassert(condition, ...) {} | ||
#define nmtools_assert_throw(condition, ...) {} | ||
|
||
#ifdef NMTOOLS_USE_OPTIONAL | ||
#undef nmtools_assert | ||
#define nmtools_assert nmtools_assert_optional | ||
#endif // NMTOOLS_USE_OPTIONAL | ||
|
||
#ifndef nmtools_assert | ||
#define nmtools_assert nmtools_cassert | ||
#endif // nmtools_assert | ||
|
||
#ifdef NMTOOLS_USE_OPTIONAL | ||
#define nmtools_assert_prepare_type nmtools_make_optional | ||
#else | ||
#define nmtools_assert_prepare_type(name, type) \ | ||
using name = type; | ||
#endif // NMTOOLS_USE_OPTIONAL | ||
|
||
#endif // NMTOOLS_PLATFORM_ASSERT_NOASSERT_HPP |
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,24 @@ | ||
#!/usr/bin/bash | ||
|
||
IGC_CORE_URL=https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-core_1.0.15985.7_amd64.deb | ||
IGC_URL=https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.15985.7/intel-igc-opencl_1.0.15985.7_amd64.deb | ||
IGC_FILENAME=intel-igc-opencl_1.0.15985.7_amd64.deb | ||
IGC_CORE_FILENAME=intel-igc-core_1.0.15985.7_amd64.deb | ||
|
||
cd /opt/ | ||
|
||
echo "downloading package.." | ||
if [[ -f "${IGC_FILENAME}" ]]; then | ||
echo "file ${IGC_FILENAME} exists, skip downloading" | ||
else | ||
wget ${IGC_URL} | ||
fi | ||
echo "downloading package.." | ||
if [[ -f "${IGC_CORE_FILENAME}" ]]; then | ||
echo "file ${IGC_CORE_FILENAME} exists, skip downloading" | ||
else | ||
wget ${IGC_CORE_URL} | ||
fi | ||
|
||
echo "installing package.." | ||
dpkg -i ${IGC_CORE_FILENAME} ${IGC_FILENAME} |
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,22 @@ | ||
#!/usr/bin/bash | ||
|
||
DIR=level-zero | ||
GIT_REPOSITORY=https://github.com/oneapi-src/level-zero.git | ||
VERSION=v1.16.9 | ||
|
||
if [[ -d "$DIR" ]]; then | ||
echo "${DIR} exists. skipping cloning" | ||
else | ||
git clone --single-branch -b ${VERSION} ${GIT_REPOSITORY} | ||
fi | ||
|
||
cd ${DIR} | ||
|
||
mkdir -p build | ||
|
||
cd build | ||
|
||
cmake .. | ||
cmake --build . --config Release | ||
cmake --build . --config Release --target package | ||
cmake --build . --config Release --target install |
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.