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

Replace outdated SYCL_DEVICE_FILTER with ONEAPI_DEVICE_SELECTOR #484

Merged
merged 11 commits into from
Jun 3, 2024

Conversation

nmishra31
Copy link
Contributor

@nmishra31 nmishra31 commented May 13, 2024

Background:
Deprecated environment variable SYCL_DEVICE_FILTER is still being used in the oneMKL Interfaces project. This variable has been replaced by ONEAPI_DEVICE_SELECTOR, and this PR finishes this replacement for the oneMKL Interfaces project. The default CPU and GPU that were used with SYCL_DEVICE_FILTER have been replaced with opencl:cpu and level_zero:gpu respectively.

Testing:
There are known failures for RNG domain on Windows x86 platforms, and the test log from this case has been attached. These failures are also present in the base repository before these changes, and are expected. There are no additional failures in this branch relative to the base repository.
test_fails.txt

@nmishra31 nmishra31 marked this pull request as ready for review May 14, 2024 18:44
Copy link
Contributor

@dnhsieh-intel dnhsieh-intel left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! There are still several unchanged SYCL device. Could you check again please?

examples/README.md Outdated Show resolved Hide resolved
examples/README.md Outdated Show resolved Hide resolved
examples/blas/run_time_dispatching/level3/gemm_usm.cpp Outdated Show resolved Hide resolved
@nmishra31
Copy link
Contributor Author

@dnhsieh-intel Thanks for pointing that out, looks like I missed a few instances in docs/comments. I did a sweep and replaced all the mentions I found of SYCL devices, let me know how that looks.

examples/README.md Outdated Show resolved Hide resolved
Co-authored-by: Dai-Ni Hsieh <dai-ni.hsieh@intel.com>
Comment on lines 30 to 32
if(ENABLE_MKLGPU_BACKEND OR ENABLE_CUFFT_BACKEND OR ENABLE_ROCFFT_BACKEND OR ENABLE_PORTFFT_BACKEND)
list(APPEND DFT_RT_SOURCES "real_fwd_usm")
list(APPEND DEVICE_FILTERS "gpu")
list(APPEND DEVICE_FILTERS "level_zero:gpu")
Copy link
Contributor

Choose a reason for hiding this comment

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

I am worried about this. Could you please check CUFFT and ROCFFT backends?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done in 1c6b27b. Testing was performed on a temporary branch and the only failures seen were already present in the base interfaces job.

list(APPEND DEVICE_FILTERS "level_zero:gpu")
endif()
if(ENABLE_PORTFFT_BACKEND)
list(APPEND_DEVICE_FILTERS "*.gpu")
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you please double-check if this should be *.gpu or *:gpu?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the catch and sorry for the mistake, double checked and ran a quick test last night, it should be *:gpu. Change has been made in a5e59a5

Co-authored-by: Dai-Ni Hsieh <dai-ni.hsieh@intel.com>
@nmishra31 nmishra31 merged commit 577a279 into oneapi-src:develop Jun 3, 2024
8 checks passed
Rbiessy pushed a commit to Rbiessy/oneMKL that referenced this pull request Jun 7, 2024
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.

None yet

4 participants