Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Conversation

@bso-intel
Copy link

@bso-intel bso-intel commented Mar 23, 2021

We should not use {SYCL_PLUGIN}: prefix for HOST/CPU/ACC_RUN_PLACEHOLDERs.
These are incorrect combination of BE:DEV_TYPE, and it will cause
device_selectors to return no device because they cannot find any device
that can satisfy that invalid combination.

Also, added host for CPU/GPU_RUN_PLACEHOLDERs because the new implementation of SYCL_DEVICE_FILTER will not add the host device automatically. intel/llvm#3397

Signed-off-by: Byoungro So [email protected]

We should not use {SYCL_PLUGIN}: prefix for HOST/CPU/ACC_RUN_PLACEHOLDERs.
These are incorrect combination of BE:DEV_TYPE, and it will cause
device_selectors to return no device because they cannot find any device
that can satisfy that invalid combination.

Signed-off-by: Byoungro So <[email protected]>
Signed-off-by: Byoungro So <[email protected]>
@bso-intel bso-intel marked this pull request as ready for review March 24, 2021 02:11
@bso-intel bso-intel requested a review from vladimirlaz as a code owner March 24, 2021 02:11
found_at_least_one_device = True
lit_config.note("Tests accelerator device")
acc_run_substitute = " env SYCL_DEVICE_FILTER={SYCL_PLUGIN}:acc ".format(SYCL_PLUGIN=config.sycl_be)
acc_run_substitute = " env SYCL_DEVICE_FILTER=acc "
Copy link
Author

Choose a reason for hiding this comment

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

It seems HOST should not be added for the ACC_RUN_PLACEHOLDER because currently HOST is higher heuristic point than ACC.
So, if we add host, the device_selectors will choose HOST instead of ACC.

@vladimirlaz vladimirlaz merged commit 43f3f33 into intel:intel Mar 24, 2021
@bso-intel bso-intel deleted the filter branch March 30, 2021 18:53
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…m-test-suite#190)

We should not use {SYCL_PLUGIN}: prefix for HOST/CPU/ACC_RUN_PLACEHOLDERs.
These are incorrect combination of BE:DEV_TYPE, and it will cause
device_selectors to return no device because they cannot find any device
that can satisfy that invalid combination.

Signed-off-by: Byoungro So <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants