Skip to content

Commit 3c57bf3

Browse files
committed
Merge branch 'sycl' into sean/async-alloc-maxSize-ifdef
2 parents debccb7 + cf1a3d3 commit 3c57bf3

File tree

6 files changed

+33
-15
lines changed

6 files changed

+33
-15
lines changed

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,22 @@ jobs:
149149
cmake -GNinja -B build-e2e -S.\llvm\sycl\test-e2e -DSYCL_TEST_E2E_TARGETS="level_zero:gpu" -DCMAKE_CXX_COMPILER="clang++" -DLEVEL_ZERO_LIBS_DIR="D:\\github\\level-zero_win-sdk\\lib" -DLEVEL_ZERO_INCLUDE="D:\\github\\level-zero_win-sdk\\include" -DLLVM_LIT="..\\llvm\\llvm\\utils\\lit\\lit.py"
150150
- name: Run End-to-End tests
151151
if: inputs.tests_selector == 'e2e'
152-
shell: bash
152+
shell: bash {0}
153153
run: |
154154
# Run E2E tests.
155155
if [[ ${{inputs.compiler}} == 'icx' ]]; then
156156
export LIT_FILTER_OUT="compile_on_win_with_mdd"
157157
fi
158158
export LIT_OPTS="-v --no-progress-bar --show-unsupported --show-pass --show-xfail --max-time 3600 --time-tests ${{ inputs.extra_lit_opts }}"
159-
cmake --build build-e2e --target check-sycl-e2e
159+
cmake --build build-e2e --target check-sycl-e2e > e2e.log 2>&1
160+
161+
exit_code=$?
162+
cat e2e.log
163+
if [ $exit_code -ne 0 ]; then
164+
# This is duplicated between lin/win, updates must change both.
165+
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
166+
fi
167+
exit $exit_code
160168
161169
- name: Run SYCL CTS Tests
162170
if: inputs.tests_selector == 'cts'

devops/actions/run-tests/cts/action.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ runs:
6767
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
6868
# of test categories to be excluded from the build.
6969
echo "::group::Excluded test categories"
70-
cat $cts_exclude_filter
70+
[ -f "$cts_exclude_filter" ] && cat "$cts_exclude_filter"
7171
echo "::endgroup::"
7272
fi
7373
@@ -134,11 +134,13 @@ runs:
134134
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
135135
fi
136136
137-
while IFS= read -r line; do
138-
if [[ $line != \#* ]]; then
139-
rm "./build-cts/bin/test_$line"
140-
fi
141-
done < "$cts_exclude_filter"
137+
if [ -f "$cts_exclude_filter" ]; then
138+
while IFS= read -r line; do
139+
if [[ $line != \#* ]]; then
140+
rm "./build-cts/bin/test_$line"
141+
fi
142+
done < "$cts_exclude_filter"
143+
fi
142144
143145
- name: Run SYCL CTS tests
144146
# Proceed with execution even if the previous two steps did not succeed.

devops/actions/run-tests/e2e/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ runs:
6565
exit_code=$?
6666
cat e2e.log
6767
if [ $exit_code -ne 0 ]; then
68+
# This is duplicated between lin/win, updates must change both.
6869
awk '/^Failed Tests|Unexpectedly Passed Tests|Unresolved tests|Timed Out Tests|Testing Time/{flag=1}/FAILED: CMakeFiles/{flag=0}flag' e2e.log >> $GITHUB_STEP_SUMMARY
6970
fi
7071
exit $exit_code

devops/actions/run-tests/windows/cts/action.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ runs:
6767
# SYCL_CTS_EXCLUDE_TEST_CATEGORIES - Optional file specifying a list
6868
# of test categories to be excluded from the build.
6969
echo "::group::Excluded test categories"
70-
cat $cts_exclude_filter
70+
[ -f "$cts_exclude_filter" ] && cat "$cts_exclude_filter"
7171
echo "::endgroup::"
7272
fi
7373
@@ -136,11 +136,13 @@ runs:
136136
cts_exclude_filter=$PWD/sycl/cts_exclude_filter/L0_GPU
137137
fi
138138
139-
while IFS= read -r line; do
140-
if [[ $line != \#* ]]; then
141-
rm "./build-cts/bin/test_$line"
142-
fi
143-
done < "$cts_exclude_filter"
139+
if [ -f "$cts_exclude_filter" ]; then
140+
while IFS= read -r line; do
141+
if [[ $line != \#* ]]; then
142+
rm "./build-cts/bin/test_$line"
143+
fi
144+
done < "$cts_exclude_filter"
145+
fi
144146
145147
- name: Run SYCL CTS tests
146148
# Proceed with execution even if the previous two steps did not succeed.

unified-runtime/source/adapters/cuda/device.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,13 @@ UR_APIEXPORT ur_result_t UR_APICALL urDeviceGetInfo(ur_device_handle_t hDevice,
10891089
return UR_RESULT_ERROR_UNSUPPORTED_ENUMERATION;
10901090
case UR_DEVICE_INFO_CURRENT_CLOCK_THROTTLE_REASONS: {
10911091
unsigned long long ClocksEventReasons;
1092+
#if (CUDA_VERSION >= 12060)
10921093
UR_CHECK_ERROR(nvmlDeviceGetCurrentClocksEventReasons(hDevice->getNVML(),
10931094
&ClocksEventReasons));
1095+
#else
1096+
UR_CHECK_ERROR(nvmlDeviceGetCurrentClocksThrottleReasons(
1097+
hDevice->getNVML(), &ClocksEventReasons));
1098+
#endif
10941099
ur_device_throttle_reasons_flags_t ThrottleReasons = 0;
10951100
constexpr unsigned long long NVMLThrottleFlags[] = {
10961101
nvmlClocksThrottleReasonSwPowerCap,

unified-runtime/source/loader/layers/sanitizer/msan/msan_report.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void ReportUsesUninitializedValue(const MsanErrorReport &Report,
3636
(void *)Report.Origin);
3737
} else {
3838
getContext()->logger.always(
39-
"====WARNING: DeviceSanitizer: use-of-uninitialized-value)");
39+
"====WARNING: DeviceSanitizer: use-of-uninitialized-value");
4040
}
4141

4242
getContext()->logger.always(

0 commit comments

Comments
 (0)