Skip to content

Commit

Permalink
alpaka job generator: add rule which requires that the sycl backend i…
Browse files Browse the repository at this point in the history
…s enabled if icpx is the compiler
  • Loading branch information
SimeonEhrig committed Jan 7, 2025
1 parent 44768ca commit 10aeca2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions script/before_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,15 @@ then
fi
fi

#-------------------------------------------------------------------------------
# ONEAPI
if [[ "${ALPAKA_CI_CXX}" == "icpx" ]]; then
if [[ "${alpaka_ACC_SYCL_ENABLE}" != "ON" ]]; then
echo_red "alpaka_ACC_SYCL_ENABLE needs to be enabled, if the C++ compiler is icpx"
exit 1
fi
fi

#-------------------------------------------------------------------------------
if [ "$ALPAKA_CI_OS_NAME" = "Linux" ]
then
Expand Down
7 changes: 7 additions & 0 deletions script/job_generator/alpaka_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,11 @@ def alpaka_post_filter(row: List) -> bool:
):
return False

# the SYCL backends needs to be enabled if the icpx compiler is used
if row_check_name(row, DEVICE_COMPILER, "==", ICPX):
if is_in_row(row, BACKENDS) and (
(ALPAKA_ACC_SYCL_ENABLE, ON_VER) not in row[param_map[BACKENDS]]
):
return False

return True

0 comments on commit 10aeca2

Please sign in to comment.