Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/aomp-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- name: Echo changed files
run: |
echo "Changed files: ${{ steps.changed-files.outputs.all_changed_files }}"
echo "Git diff files: $(git diff --name-only HEAD~1 HEAD)"

- name: Run shellcheck
run: |
shellcheck_status=0
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
while read -r file; do
if [[ "$file" == *.sh ]] || [[ $(file "$file") =~ "shell script" ]]; then
file_dir=$(dirname "$file")
file_name=$(basename "$file")

Expand All @@ -43,6 +44,6 @@ jobs:

popd || exit 1
fi
done
done <<< $(git diff --name-only HEAD~1 HEAD)
exit $shellcheck_status
shell: bash {0}
2 changes: 2 additions & 0 deletions srock-bin/build_cmake.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash
#
# build_cmake.sh : build cmake and ninja
#
#Copyright © Advanced Micro Devices, Inc., or its affiliates.
#
#SPDX-License-Identifier: MIT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main() {
/// CHECK-NOT: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
#pragma omp target update from(z[:10])

/// CHECK: AMDGPU message: Running a program that requires XNACK on a system where XNACK is disabled. This may cause problems when using an OS-allocated pointer inside a target region. Re-run with HSA_XNACK=1 to remove this warning.
/// CHECK: AMDGPU message: Running a program that requires XNACK on a system where XNACK is disabled or not supported. If your device supports XNACK, re-run with HSA_XNACK=1. If your device does not support XNACK, remove USM pragma and use map clauses instead. Set OMPX_EAGER_ZERO_COPY_MAPS=1 for optimal zero-copy performance on non-XNACK shared-memory devices.

// Note: when the output is redirected rather than printed at the console,
// the printf'd strings are printed AFTER all the OpenMP runtime library
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ int main() {
/// CHECK-NOT: data_retrieve_async: {{.*}} 0 ({{.*}} 4, {{.*}})
#pragma omp target update from(z[:10])

/// CHECK: AMDGPU message: Running a program that requires XNACK on a system where XNACK is disabled. This may cause problems when using an OS-allocated pointer inside a target region. Re-run with HSA_XNACK=1 to remove this warning.
/// CHECK: AMDGPU message: Running a program that requires XNACK on a system where XNACK is disabled or not supported. If your device supports XNACK, re-run with HSA_XNACK=1. If your device does not support XNACK, remove USM pragma and use map clauses instead. Set OMPX_EAGER_ZERO_COPY_MAPS=1 for optimal zero-copy performance on non-XNACK shared-memory devices.

// Note: when the output is redirected rather than printed at the console,
// the printf'd strings are printed AFTER all the OpenMP runtime library
Expand Down