Skip to content
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

Closed
wants to merge 6 commits into from

Conversation

ayylol
Copy link
Contributor

@ayylol ayylol commented May 31, 2024

No description provided.

@ayylol ayylol requested a review from a team as a code owner May 31, 2024 22:16
@ayylol ayylol requested a review from againull May 31, 2024 22:16
@againull
Copy link
Contributor

againull commented Jun 3, 2024

@ayylol One test is failing in CI, could you please take a look. Overall changes look good to me.

@ayylol ayylol requested review from a team as code owners June 5, 2024 17:56
@ayylol ayylol requested a review from JackAKirk June 5, 2024 17:56
@aelovikov-intel
Copy link
Contributor

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 =
Copy link
Contributor

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));

Copy link
Contributor

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
Copy link
Contributor

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."));
Copy link
Contributor

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.

@asudarsa asudarsa requested a review from hdelan June 5, 2024 18:27
@asudarsa
Copy link
Contributor

asudarsa commented Jun 5, 2024

Please resync with sycl branch tip. There are some unrelated changes in this PR. Thanks

@ayylol
Copy link
Contributor Author

ayylol commented Jun 5, 2024

Sorry about that, will fix

@ayylol ayylol marked this pull request as draft June 5, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants