-
Notifications
You must be signed in to change notification settings - Fork 798
[SYCL] Add sycl-jit e2e feature #19724
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
base: sycl
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -970,6 +970,16 @@ def get_sycl_ls_verbose(sycl_device, env): | |
config.available_features.add("device-config-file") | ||
config.substitutions.append(("%device_config_file_include_flag", "")) | ||
|
||
# Check for sycl-jit library | ||
if platform.system() == "Linux": | ||
if os.path.exists(os.path.join(config.sycl_libs_dir, "libsycl-jit.so")): | ||
config.available_features.add("sycl-jit") | ||
elif platform.system() == "Windows": | ||
if os.path.exists(os.path.join(config.sycl_libs_dir, "sycl-jit.lib")): | ||
config.available_features.add("sycl-jit") | ||
Comment on lines
+977
to
+979
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. NIT: sycl-jit.lib is required at compile time, but at runtime, sycl-jit.dll must be available in the PATH. However, since the .lib and .dll are typically distributed together, I believe checking for the .lib should be sufficient. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually it's probably better to check only for dll in this case. |
||
if "sycl-jit" not in config.available_features: | ||
lit_config.note("sycl-jit was not found. Tests requiring sycl-jit will be skipped.") | ||
|
||
# That has to be executed last so that all device-independent features have been | ||
# discovered already. | ||
config.sycl_dev_features = {} | ||
|
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.
If I am not mistaken we don't need this requirement at build-time, i.e. this is "run-mode" only feature and needs to be removed from this list. Please see my second comment.