forked from intel/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[HIP] Changes for device_globals and enable tests (intel#12165)
Enable `device_global` for AMDGPU. Related to oneapi-src/unified-runtime#1186 . In order for `hipModuleGetGlobal` to see a global symbol we need to not make the visibility of the symbol hidden. Perhaps changing this as a default is not always a good idea. Could also do this in the SYCL headers using an attribute to specify the visibility of the `device_global` var
- Loading branch information
Showing
12 changed files
with
42 additions
and
34 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Test that driver has the correct flags for SYCL HIP compilation | ||
|
||
// RUN: %clangxx -### %s -fsycl -fsycl-targets=amdgcn-amd-amdhsa -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=gfx1031 -fno-sycl-libspirv -nogpulib --sysroot=%S/Inputs/SYCL %s 2>&1 \ | ||
// RUN: | FileCheck %s | ||
|
||
// CHECK: sycl-post-link{{.*}} "-emit-program-metadata" {{.*}} | ||
// CHECK-NOT: "-cc1"{{.*}}"-fvisibility=hidden" | ||
|
This file contains 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 |
---|---|---|
|
@@ -57,14 +57,13 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT) | |
include(FetchContent) | ||
|
||
set(UNIFIED_RUNTIME_REPO "https://github.com/oneapi-src/unified-runtime.git") | ||
# commit d06ba9d9c539dc712444c6db95dfe1629bd5f7d8 | ||
# Merge: e1414e1 35b6a5e | ||
# Author: Kenneth Benzie (Benie) <[email protected]> | ||
# Date: Thu Jan 11 15:09:01 2024 +0000 | ||
# Merge pull request #1035 from Bensuo/cmd-buffer-profiling-l0 | ||
# [EXP][CMDBUF] Add support for recovering CommandBuffer profiling | ||
# information | ||
set(UNIFIED_RUNTIME_TAG d06ba9d9c539dc712444c6db95dfe1629bd5f7d8) | ||
# commit 79c28d0f0713f58358d5080653d95803fd131749 | ||
# Merge: 25e0b603 45d76b78 | ||
# Author: aarongreig <[email protected]> | ||
# Date: Fri Jan 12 16:14:44 2024 +0000 | ||
# Merge pull request #1186 from hdelan/device-global-hip | ||
# [HIP] Add support for global variable read write | ||
set(UNIFIED_RUNTIME_TAG 79c28d0f0713f58358d5080653d95803fd131749) | ||
|
||
if(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO) | ||
set(UNIFIED_RUNTIME_REPO "${SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_REPO}") | ||
|
This file contains 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 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 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 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
6 changes: 3 additions & 3 deletions
6
sycl/test-e2e/DeviceGlobal/device_global_operator_passthrough.cpp
This file contains 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
6 changes: 3 additions & 3 deletions
6
sycl/test-e2e/DeviceGlobal/device_global_operator_passthrough_dis.cpp
This file contains 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 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 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