-
Notifications
You must be signed in to change notification settings - Fork 2
Update ci.yml #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3c682a7
Update ci.yml
fschlimb d7de931
Update ci.yml
fschlimb daaa5f6
updating pre-commit
fschlimb f17fd1c
using ubuntu 22.04 for pre-commit hook
fschlimb 58e898d
using clang-format 14.0.0
fschlimb a975e3b
runs-on: ubuntu-22.04
fschlimb 4e5597a
runs-on: ubuntu-22.04
fschlimb 6146289
use dpcpp (broken) conda packages
fschlimb 7ab27ca
adding missing"
fschlimb de4d64d
checking BUILD_PREFIX
fschlimb 2db4bb9
typo
fschlimb b8f9ddb
grrrr
fschlimb b8bbb22
grrrr
fschlimb 464fdbf
grrrr
fschlimb ba9ae0c
no sycl/l0
fschlimb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -9,7 +9,7 @@ permissions: read-all | |
|
||
jobs: | ||
pre-commit: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: actions/setup-python@v5 | ||
|
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -27,17 +27,28 @@ popd | |
|
||
# skip checkout/build of IMEX/LLVM if there is an install | ||
if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then | ||
# FIXME work-around as long dpcpp conda packages are incomplete | ||
export SYCL_DIR="/opt/intel/oneapi/compiler/latest/linux" | ||
if [ ! -d "${SYCL_DIR}" ]; then | ||
export SYCL_DIR="/opt/intel/oneapi/compiler/latest" | ||
if [ ! -d "${SYCL_DIR}" ]; then | ||
echo "Fatal error: SYCL_DIR not found" | ||
exit 1 | ||
fi | ||
fi | ||
# export SYCL_DIR=${CONDA_PREFIX} | ||
echo "Using SYCLDIR=${SYCL_DIR}" | ||
export SYCL_DIR=${CONDA_PREFIX} | ||
echo "Using SYCL_DIR=${SYCL_DIR}" | ||
|
||
# grrrr | ||
# as long as the conda packages differ from system oneAPI installs we need to explicitly provide the include dir for SYCL | ||
# see also below in cmake call | ||
# for root in "${CONDA_PREFIX}" "${BUILD_PREFIX}"; do | ||
# spirvdir=$(find "${root}" -type d -name __spirv | head -n 1) | ||
# if [ -d "${spirvdir}" ]; then | ||
# SPIRV_INC_DIR=$(dirname "${spirvdir}") | ||
# break | ||
# fi | ||
# done | ||
# if [ -d "${SPIRV_INC_DIR}" ]; then | ||
# echo "Using SPIRV_INC_DIR=${SPIRV_INC_DIR}" | ||
# mkdir -p "${SRC_DIR}/grrrr/include" | ||
# ln -s "${SPIRV_INC_DIR}" "${SRC_DIR}/grrrr/include/CL" | ||
# SPIRV_INC_DIR="${SRC_DIR}/grrrr/include" | ||
# else | ||
# echo "Fatal error: SPIRV_INC_DIR not found" | ||
# exit 1 | ||
# fi | ||
|
||
rm -rf ${INSTALLED_DIR}/imex | ||
IMEX_SHA=$(cat imex_version.txt) | ||
|
@@ -83,10 +94,11 @@ if [ ! -d "${INSTALLED_DIR}/imex/lib" ]; then | |
-DLLVM_ENABLE_ZSTD=OFF \ | ||
-DLLVM_ENABLE_ZLIB=OFF \ | ||
-DLLVM_EXTERNAL_PROJECTS="Imex" \ | ||
-DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. \ | ||
-DLEVEL_ZERO_DIR=${INSTALLED_DIR}/level-zero \ | ||
-DIMEX_ENABLE_SYCL_RUNTIME=1 \ | ||
-DIMEX_ENABLE_L0_RUNTIME=1 | ||
-DLLVM_EXTERNAL_IMEX_SOURCE_DIR=. | ||
# -DLEVEL_ZERO_DIR=${INSTALLED_DIR}/level-zero \ | ||
# -DIMEX_ENABLE_SYCL_RUNTIME=1 \ | ||
# -DIMEX_ENABLE_L0_RUNTIME=1 \ | ||
# -DCMAKE_CXX_FLAGS="-I${SPIRV_INC_DIR}" # grrrr | ||
Comment on lines
+98
to
+101
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rm comments? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you don't mind I'll keep the comments for later when we enable oneAPI/devices. |
||
cmake --build build | ||
cmake --install build --prefix=${INSTALLED_DIR}/imex | ||
popd | ||
|
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
python black_scholes.py -p M16Gb -b numpy | ||
|
||
""" | ||
|
||
import argparse | ||
import os | ||
import time as time_mod | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
python shallow_water.py -b numpy ... | ||
|
||
""" | ||
|
||
import argparse | ||
import math | ||
import os | ||
|
This file contains hidden or 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 |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
python wave_equation.py -b numpy ... | ||
|
||
""" | ||
|
||
import argparse | ||
import math | ||
import os | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm comments?