Skip to content

[SYCL][E2E] Minor OpenCL KernelCompiler Test Reorg #19124

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

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

cperkinsintel
Copy link
Contributor

breaking opencl kernel_compiler test up to not hit timeouts when building -O0

@cperkinsintel cperkinsintel marked this pull request as ready for review June 25, 2025 16:34
@cperkinsintel cperkinsintel requested a review from a team as a code owner June 25, 2025 16:34
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few nits about style.


// only one device is supported at this time, so we limit the queue and
// context to that
sycl::device d{sycl::default_selector_v};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sycl::device d{sycl::default_selector_v};
sycl::device D{sycl::default_selector_v};

// only one device is supported at this time, so we limit the queue and
// context to that
sycl::device d{sycl::default_selector_v};
sycl::context ctx{d};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sycl::context ctx{d};
sycl::context Ctx{d};

// context to that
sycl::device d{sycl::default_selector_v};
sycl::context ctx{d};
sycl::queue q{ctx, d};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sycl::queue q{ctx, d};
sycl::queue Q{ctx, d};

sycl::context ctx{d};
sycl::queue q{ctx, d};

bool ok =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bool ok =
bool Ok =

return;
}

source_kb kbSrc = syclex::create_kernel_bundle_from_source(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
source_kb kbSrc = syclex::create_kernel_bundle_from_source(
source_kb KbSrc = syclex::create_kernel_bundle_from_source(

ctx, syclex::source_language::opencl, CLSource);
exe_kb kbExe1 = syclex::build(kbSrc);

sycl::kernel my_kernel = kbExe1.ext_oneapi_get_kernel("my_kernel");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
sycl::kernel my_kernel = kbExe1.ext_oneapi_get_kernel("my_kernel");
sycl::kernel MyKernel = kbExe1.ext_oneapi_get_kernel("my_kernel");

using source_kb = sycl::kernel_bundle<sycl::bundle_state::ext_oneapi_source>;
using exe_kb = sycl::kernel_bundle<sycl::bundle_state::executable>;

// only one device is supported at this time, so we limit the queue and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// only one device is supported at this time, so we limit the queue and
// Only one device is supported at this time, so we limit the queue and

using exe_kb = sycl::kernel_bundle<sycl::bundle_state::executable>;

// only one device is supported at this time, so we limit the queue and
// context to that
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// context to that
// context to that.

@againull againull merged commit a984bee into intel:sycl Jun 25, 2025
25 checks passed
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.

3 participants