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] Update test scripts and sycl-ls to use 'fpga' with ONEAPI_DEVICE_SELECTOR #12596

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

uditagarwal97
Copy link
Contributor

@uditagarwal97 uditagarwal97 commented Feb 2, 2024

As per the ONEAPI_DEVICE_SELECTOR documentation, the device type can only be cpu, gpu, or fpga (or any combination of those). Currently, 'acc' is also accepted by ONEAPI_DEVICE_SELECTOR as a valid device type, which is incorrect.

This PR modifies lit.cfg.py and sycl-ls to use 'fpga' instead of 'acc' in ONEAPI_DEVICE_SELECTOR.

@aelovikov-intel
Copy link
Contributor

I think sycl-ls should be fixed instead of this.

@@ -590,7 +590,7 @@
config.intel_driver_ver = {}
for sycl_device in config.sycl_devices:
env = copy.copy(llvm_config.config.environment)
env["ONEAPI_DEVICE_SELECTOR"] = sycl_device
env["ONEAPI_DEVICE_SELECTOR"] = sycl_device.replace(":acc", ":fpga")
Copy link
Contributor

Choose a reason for hiding this comment

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

Line 430 should be updated instead, I think.

@uditagarwal97
Copy link
Contributor Author

uditagarwal97 commented Feb 5, 2024

I think sycl-ls should be fixed instead of this.

Yup. I've changed 'sycl-ls' output.

@uditagarwal97 uditagarwal97 changed the title [SYCL] Update test scripts to use 'fpga' with ONEAPI_DEVICE_SELECTOR [SYCL] Update test scripts and sycl-ls to use 'fpga' with ONEAPI_DEVICE_SELECTOR Feb 5, 2024
@uditagarwal97
Copy link
Contributor Author

@intel/llvm-gatekeepers the PR is ready!

@steffenlarsen steffenlarsen merged commit 2c85e99 into intel:sycl Feb 6, 2024
12 checks passed
dm-vodopyanov pushed a commit that referenced this pull request Feb 8, 2024
)

As per the ONEAPI_DEVICE_SELECTOR
[documentation](https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md#oneapi_device_selector),
the device type can only be cpu, gpu, or fpga (or any combination of
those). Currently, 'acc' is also accepted by ONEAPI_DEVICE_SELECTOR as a
valid device type, which is incorrect.

This PR modifies drops support of 'acc' in ONEAPI_DEVICE_SELECTOR in
favor of 'fpga'. We have already updated existing test cases (#12551),
testing scripts (#12596 ) to use 'fpga' with ONEAPI_DEVICE_SELECTOR.
steffenlarsen pushed a commit that referenced this pull request Feb 9, 2024
In PR##12596, we changed the output of
sycl-ls to use 'fpga' instead of 'acc'. This has caused several tests to
fail when fpga is available on the system. This PR fixes that.

In retrospect, we should have enabled testing on FPGA in pre-commit
testing as this bug could have been caught earlier.
@uditagarwal97 uditagarwal97 deleted the udit_update_test_scripts branch March 21, 2024 19:58
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