Skip to content

Commit

Permalink
Merge branch 'alpaka-group:develop' into SYCL_accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraPerego authored Aug 4, 2023
2 parents e82066f + 74c320e commit 1878e90
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ jobs:
- name: linux_clang-13_debug
os: ubuntu-22.04
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 13, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.79.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 3, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:20.04", CMAKE_CXX_EXTENSIONS: OFF}
- name: linux_clang-16_debug_ubsan
os: ubuntu-latest
env: {CXX: clang++, CC: clang, ALPAKA_CI_CLANG_VER: 16, ALPAKA_CI_STDLIB: libstdc++, CMAKE_BUILD_TYPE: Debug, ALPAKA_BOOST_VERSION: 1.77.0, ALPAKA_CI_CMAKE_VER: 3.23.5, OMP_NUM_THREADS: 4, ALPAKA_CI_DOCKER_BASE_IMAGE_NAME: "ubuntu:22.04", CMAKE_CXX_EXTENSIONS: OFF, ALPAKA_CI_SANITIZERS: UBSan}

# icpx
- name: linux_icpx_release
Expand Down
8 changes: 8 additions & 0 deletions script/job_generator/alpaka_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ def alpaka_post_filter(row: List) -> bool:
):
return False

# because of a compiler bug, we disable mdspan for NVCC <= 11.2
if (
row_check_version(row, MDSPAN, "==", ON_VER)
and row_check_name(row, DEVICE_COMPILER, "==", NVCC)
and row_check_version(row, DEVICE_COMPILER, "<=", "11.2")
):
return False

return True
3 changes: 3 additions & 0 deletions script/job_generator/alpaka_globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,6 @@
# CUDA SM level of the job
# is empty, if there is no CUDA backend enabled
SM_LEVEL: str = "sm_level"

# enable mdspan support
MDSPAN: str = "mdspan"
9 changes: 8 additions & 1 deletion script/job_generator/generate_job_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,15 @@ def job_prefix_coding(job: Dict[str, Tuple[str, str]]) -> str:
str: Job name Prefix.
"""
version_str = ""
for sw in [CMAKE, BOOST, UBUNTU, CXX_STANDARD, BUILD_TYPE]:
for sw in [CMAKE, BOOST, UBUNTU, CXX_STANDARD, MDSPAN, BUILD_TYPE]:
if sw in job:
if job[sw][NAME] == CXX_STANDARD:
version_str += "_cxx" + job[sw][VERSION]
elif job[sw][NAME] == BUILD_TYPE:
version_str += "_" + job[sw][VERSION]
elif job[sw][NAME] == MDSPAN:
if job[sw][VERSION] == ON_VER:
version_str += "_mdspan"
else:
version_str += "_" + job[sw][NAME] + job[sw][VERSION]

Expand Down Expand Up @@ -279,6 +282,10 @@ def job_variables(job: Dict[str, Tuple[str, str]]) -> Dict[str, str]:
variables["alpaka_ACC_GPU_CUDA_ONLY_MODE"] = "OFF"
variables[ALPAKA_ACC_GPU_HIP_ENABLE] = "OFF"
variables["alpaka_ACC_GPU_HIP_ONLY_MODE"] = "OFF"
if job[MDSPAN][VERSION] == ON_VER:
variables["ALPAKA_TEST_MDSPAN"] = "ON"
else:
variables["ALPAKA_TEST_MDSPAN"] = "OFF"

if job[DEVICE_COMPILER][NAME] == HIPCC:
variables[ALPAKA_ACC_GPU_HIP_ENABLE] = "ON"
Expand Down
1 change: 1 addition & 0 deletions script/job_generator/job_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ def get_args() -> argparse.Namespace:
parameters[CXX_STANDARD] = get_sw_tuple_list(CXX_STANDARD)
parameters[BUILD_TYPE] = get_sw_tuple_list(BUILD_TYPE)
parameters[JOB_EXECUTION_TYPE] = get_sw_tuple_list(JOB_EXECUTION_TYPE)
parameters[MDSPAN] = get_sw_tuple_list(MDSPAN)

# print a warning, if a parameter value is not supported by the ajc-library
verify_parameters(parameters)
Expand Down
2 changes: 1 addition & 1 deletion script/job_generator/verify.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def verify_parameters(
f"{name}-{mod_version} is not officially supported by "
"the alpaka-job-library."
)
elif param_name not in [BUILD_TYPE, JOB_EXECUTION_TYPE]:
elif param_name not in [BUILD_TYPE, JOB_EXECUTION_TYPE, MDSPAN]:
for name, version in param_value:
# if we compare a minor.major.patch version with a minor.major
# version, the check is only true, if all three numbers matches
Expand Down
1 change: 1 addition & 0 deletions script/job_generator/versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
# use only TEST_COMPILE_ONLY, because TEST_RUNTIME will be set manually depend on some
# conditions later
JOB_EXECUTION_TYPE: [JOB_EXECUTION_COMPILE_ONLY],
MDSPAN: [ON_VER, OFF_VER],
}


Expand Down
12 changes: 12 additions & 0 deletions script/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ then
fi
fi

if [ -z "${ALPAKA_TEST_MDSPAN+x}" ];
then
export alpaka_USE_MDSPAN=OFF
else
if [ "${ALPAKA_TEST_MDSPAN}" == "ON" ];
then
export alpaka_USE_MDSPAN=FETCH
else
export alpaka_USE_MDSPAN=OFF
fi
fi

./script/run_generate.sh
./script/run_build.sh

Expand Down
2 changes: 1 addition & 1 deletion script/run_generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ cd build/
"$(env2cmake alpaka_ACC_GPU_CUDA_ENABLE)" "$(env2cmake alpaka_ACC_GPU_CUDA_ONLY_MODE)" "$(env2cmake CMAKE_CUDA_ARCHITECTURES)" "$(env2cmake CMAKE_CUDA_COMPILER)" "$(env2cmake CMAKE_CUDA_FLAGS)" \
"$(env2cmake alpaka_CUDA_FAST_MATH)" "$(env2cmake alpaka_CUDA_FTZ)" "$(env2cmake alpaka_CUDA_SHOW_REGISTER)" "$(env2cmake alpaka_CUDA_KEEP_FILES)" "$(env2cmake alpaka_CUDA_EXPT_EXTENDED_LAMBDA)" "$(env2cmake CMAKE_CUDA_SEPARABLE_COMPILATION)" \
"$(env2cmake GPU_TARGETS)" "$(env2cmake alpaka_ACC_GPU_HIP_ENABLE)" "$(env2cmake alpaka_ACC_GPU_HIP_ONLY_MODE)" \
"$(env2cmake alpaka_DEBUG)" "$(env2cmake alpaka_CI)" "$(env2cmake alpaka_CHECK_HEADERS)" "$(env2cmake alpaka_CXX_STANDARD)" "$(env2cmake CMAKE_INSTALL_PREFIX)" \
"$(env2cmake alpaka_DEBUG)" "$(env2cmake alpaka_CI)" "$(env2cmake alpaka_CHECK_HEADERS)" "$(env2cmake alpaka_CXX_STANDARD)" "$(env2cmake alpaka_USE_MDSPAN)" "$(env2cmake CMAKE_INSTALL_PREFIX)" \
".."

cd ..

0 comments on commit 1878e90

Please sign in to comment.