-
Notifications
You must be signed in to change notification settings - Fork 124
Add queue properties to support immediate and batched submissions. #576
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
|
How do these changes get tested? I am mainly concerned with the code factoring done in ur_params.hpp |
kbenzie
left a comment
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.
These files are automatically generated from a YAML description of the API. Please read the Contributing Guide for infomation about how to go about making changes.
To validate these changes with |
|
I've read the "contributing" document and have made the primary change in queue.yaml. Running "make generate-code" leads to a doxygen not found error. Is doxygen expected to be in the path? |
|
I tried to redo this PR by changing only queue.yml and urQueueCreate.cpp but there are extensive changes in many files generated and quite a few of the changes appear to be formatting changes. I may not be using the right cmake and make invocations. Can you post the recommended cmake and make invocations I should use? I have read the Contributing Guide but it lists many alternative cmake and make invocations. I may not be using the right ones. |
Yes,
If you're seeing formatting changes that would suggest to me that Since you mention If so, this is the workflow I recommend. First install # create a python virtual environment
python3 -m venv .local
# then activate the python virtual environment
source .local/bin/activate
# install the python packages, this convienetly also includes clang-format version 15
pip install -r third_party/requirements.txt
# configure a build directory with cmake
cmake . -Bbuild -DCMAKE_BUILD_TYPE=ReleaseWith that you should have configured a working build environment and can go ahead with building: At this point, you should commit all of the files both the ones you've edited and those changed by the generator scripts. I hope this helps. I've also opened #582 to make sure we improve the instructions for first setup moving forwards. |
|
Thanks for the instructions. We work on shared Ubuntu machines where we don't have root access. So I had to use a simplified version of the steps. cmake . -Bbuild -DCMAKE_BUILD_TYPE=Release Things look much better. |
Interesting, are you able to run containers ( |
This change adds two new queue properties which will be used to handle the corresponding SYCL queue properties for immediate and batched submissions. Short-running kernels are best collected into batches and submitted together. Long-running kernels are better submitted immediately.
In batched mode, submission is separated from the actual start of execution on the GPU. Multiple submissions can be collected and then issued together.
In immediate mode submission of an operation and start of execution happen together.