-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL][E2E] Remove uses of OpenCL primitives in Basic/image e2e tests #13998
Conversation
@ayylol One test is failing in CI, could you please take a look. Overall changes look good to me. |
I think there is a mistake with git branches/merges/rebases or whatever here... |
@@ -5843,10 +5843,15 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, | |||
CmdArgs.push_back("-emit-llvm-uselists"); | |||
|
|||
if (IsUsingLTO) { | |||
bool IsUsingOffloadNewDriver = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these changes are from a different PR which was recently merged. Can you please sync with SYCL tip? Thanks
@@ -11120,6 +11125,32 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, | |||
for (const auto &A : TranslatorArgs) | |||
appendOption(OptString, A); | |||
CmdArgs.push_back(Args.MakeArgString("--llvm-spirv-options=" + OptString)); | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above,
@@ -1,24 +1,49 @@ | |||
// REQUIRES: hip | |||
// RUN: %clangxx -fsycl -fsycl-targets=amd_gpu_gfx906 %s -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-SAFE | |||
// RUN: %clangxx -fsycl -fsycl-targets=amd_gpu_gfx906 %s -mllvm --amdgpu-oclc-unsafe-int-atomics=true -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-UNSAFE | |||
// RUN: %clangxx -fsycl -fsycl-targets=amd_gpu_gfx90a %s -mllvm --amdgpu-oclc-unsafe-fp-atomics=true -mllvm --amdgpu-oclc-unsafe-int-atomics=true -S -emit-llvm -o - | FileCheck %s --check-prefixes=CHECK,CHECK-UNSAFE-FP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need Compiler Options WG approval for such options? Thanks
@@ -39,6 +42,9 @@ static cl::opt<bool> | |||
static cl::opt<bool> AMDGPUUnsafeIntAtomicsEnable( | |||
"amdgpu-oclc-unsafe-int-atomics", cl::init(false), cl::Hidden, | |||
cl::desc("Should unsafe int atomics be chosen. Disabled by default.")); | |||
static cl::opt<bool> AMDGPUUnsafeFPAtomicsEnable( | |||
"amdgpu-oclc-unsafe-fp-atomics", cl::init(false), cl::Hidden, | |||
cl::desc("Should unsafe fp atomics be chosen. Disabled by default.")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please consider rewording: Unsafe fp atomics should be chosen.
Please resync with sycl branch tip. There are some unrelated changes in this PR. Thanks |
Sorry about that, will fix |
No description provided.