-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL] Add device config file consistency test #16369
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
Conversation
@@ -532,6 +532,11 @@ if("hip" IN_LIST SYCL_ENABLE_BACKENDS) | |||
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS ur_adapter_hip) | |||
endif() | |||
|
|||
if(INSTALL_DEVICE_CONFIG_FILE) | |||
add_dependencies(sycl-toolchain DeviceConfigFile) |
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.
can you give some background on why we need to install this? thx
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.
I'm still testing things, so I might change some things, but I want to support the new device_config_file_consistency
test. It uses the DeviceConfigFile.hpp
, and that file includes DeviceConfigFile.inc
, which is generated by tablegen. On CI from what I understand the e2e tests are invoked by using the packed install files from the build step and only runs CMake on the sycl/test-e2e
subfolder. So since we probably don't want to build tablegen and invoke other LLVM cmake files when running the e2e tests, I install the DeviceConfigFile.inc
it in the build step to pass it to the e2e tests. Also note that this test must be an e2e test as it queries the device it is running the test on, so it can't be moved to sycl/test
.
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.
sorry so what tools/files are required to generate that hpp file? Is it just llvm-tablegen
and DeviceConfigFile.inc
?
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.
Yea just tablegen and DeviceConfigFile.td
are needed for the hpp file
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.
Also just for some more background I was aiming so that DeviceConfigFile.hpp is not installed by default because outside of testing, this file is not needed for a SYCL distribution, it is only used in the compiler.
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.
A few nits, but otherwise looks quite good.
Note also that I unresolved a few conversations about punctuation because I don't see them resolved in the code. |
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.
LGTM. Just one more nit.
CI: |
@AlexeySachkov if you don't have any further objections - could you please merge? |
We need an approval from @sarnex as a member of @intel/dpcpp-devops-reviewers group |
I would tag @frasercrmck here, we need someone familiar with CUDA. |
The same thing for hip - e098145 |
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.
configure.py lgtm
No description provided.