-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
How to prevent master thread from being scheduled? #38
Labels
Comments
Yes this is possible.
Only the threads created by enkiTS will run tasks by themselves. The thread
which initializes enkiTS can tasks using the WaitforTask() call but you can
use the priority system to prevent certain tasks from running when this is
called.
There also exists a pinned task system for explicitly running tasks on
certain threads.
In your case I recommend the master thread initializes enkiTS and you
should then be able to schedule tasks to be run which will then not run on
the master thread.
…On Sun, 15 Sep 2019, 17:01 Vinjn Zhang, ***@***.***> wrote:
enkiTS is an excellent library to serve my project, which is running
multiple OpenGL contexts on multiple GPUs.
In my design, master thread is running light-weighted workloads, which
means it should never be scheduled to run ITaskSet tasks.
Is it possible?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#38?email_source=notifications&email_token=AAGVD4WA26KBHNINJZR3SILQJZE6NA5CNFSM4IW25QCKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLOAE4Q>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAGVD4TFF4GIGCZUEB5P7XLQJZE6NANCNFSM4IW25QCA>
.
|
vinjn
changed the title
How to blacklist certain threads from being picked?
How to prevent master thread from being scheduled?
Sep 15, 2019
Thanks @dougbinks
Can you give more details? It seems I need to use |
You only need to run WaitforTask if you need to wait for the task.
Alternatively you can poll for the task to complete and continue running.
If you want to wait for a task to complete, but not run other tasks, you
can give that task a high priority, other tasks lower priorities and when
you wait for the high priority task you specify to only run high priority
tasks whilst waiting. See the readme and priorities example for code.
|
I think this question is now answered, so I'm going to close it unless there are any further questions or issues on this topic. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
enkiTS is an excellent library to serve my project, which is running multiple OpenGL contexts on multiple GPUs.
In my design, master thread is running light-weighted workloads, which means it should never be scheduled to run any
ITaskSet
tasks.Is it possible?
The text was updated successfully, but these errors were encountered: