intel / intel/llvm

Static Device Global Doesn't Work for HIP

Open
#15,329 0 comments 0 reactions 0 assignees View on GitHub
bug hip
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

### Describe the bug

We want [this test](https://github.com/intel/llvm/blob/sycl/sycl/test-e2e/DeviceGlobal/device_global_static.cpp) to work on `hip_amd` but it doesn't, as the HIP TC seems to "disappear" static `device_global` symbols. Perhaps we need to change the linkage of the symbol as an easy fix.

https://github.com/intel/llvm/pull/15224#issuecomment-2334143522

### To reproduce

Run [this test](https://github.com/intel/llvm/blob/sycl/sycl/test-e2e/DeviceGlobal/device_global_static.cpp)

### Environment

- OS: [e.g Windows/Linux]
- Target device and vendor: AMD GPU
- DPC++ version: 74fa7ba37259bdaf3a29a8813a901a486e99f10c

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.