-
Notifications
You must be signed in to change notification settings - Fork 738
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][CUDA][HIP] Implement support for AMD and NVIDIA architectures as argument to fsycl-targets #7348
Conversation
…IA and AMD architectures - Reflect earlier updates in DeviceIf.md to the implementation.
- Reflect above update into the related unit test.
…sciidoc with the contents from proposed/sycl_ext_oneapi_device_architecture.asciidoc
…l_ext_oneapi_device_architecture.asciidoc. - Delete proposed/ycl_ext_oneapi_device_architecture.asciidoc
Don't we also need changes to the compiler driver to predefine macros like |
@mmoadeli thanks for the PR! Please don't forget to update tests in intel/llvm-test-suite: https://github.com/intel/llvm-test-suite/blob/intel/SYCL/DeviceArchitecture/device_architecture.cpp |
thanks @dm-vodopyanov , i'll update the tests. |
thanks @gmlueck , I address this. |
- Fixes an isssue in getGenDeviceMacro returning StringRef to locally created string. - Updates user mantual to add supported nvidia and amd gpus.
…x64-nvidia-gpu - Rename nvidia_gpu_smxx into nvidia_gpu_sm_xx to be more conformant to existing code. - Reflect updates into sycl-intel-gpu.cpp lit tests
- Rename and generalise isIntelGPUTarget - Add gpu lit tests
|
@gmlueck, thanks for your comment. It's addressed. |
/verify with intel/llvm-test-suite#1402 |
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.
Doc and spec changes LGTM, but you should still get approvals for the driver and header changes.
sycl/doc/extensions/experimental/sycl_ext_oneapi_device_architecture.asciidoc
Outdated
Show resolved
Hide resolved
/verify with intel/llvm-test-suite#1402 |
@v-klochkov @mdtoguchi @dm-vodopyanov |
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.
sycl/doc/UsersManual.md changes look good to me.
/verify with intel/llvm-test-suite#1402 |
@AlexeySachkov any chance to have this PR merged please? |
@mmoadeli, from what I see, this PR still lacks an approval from @intel/llvm-reviewers-runtime and I don't have enough permissions to merge without approvals. |
|
@v-klochkov would you mind reviewing this PR please? |
@mmoadeli, there is a fail on opencl for modified test and some documentation issue. Can you take a look? |
Thanks @pvchupin Would you please clarify on the issues with documentations? |
Generate Doxygen CI task fails. It seems it was fixed in #7524, but |
@mmoadeli, can you take a look into post-commit issue on Windows please?
|
@pvchupin, sorry, seems some tests are assumed linux build. I address them shortly. |
A shorter syntax to specify device targets has been introduced in intel/llvm#7348: * `-DSYCL_CXX_FLAGS_EXTRA='-fsycl-targets=nvidia_gpu_sm_86'`, or * `-DSYCL_CXX_FLAGS_EXTRA='-fsycl-targets=amd_gpu_gfx906'`. Now, our CMake correctly parses these flags too. Refs #4716
*Updates experimental/sycl_ext_intel_device_architecture.asciidoc with the contents from proposed/sycl_ext_oneapi_device_architecture.asciidoc.