* [amdgpu] Compute kernels still run when the host process exit?
@ 2021-04-01 14:07 Smith John
2021-04-01 18:22 ` Alex Deucher
0 siblings, 1 reply; 4+ messages in thread
From: Smith John @ 2021-04-01 14:07 UTC (permalink / raw)
To: amd-gfx
[-- Attachment #1.1: Type: text/plain, Size: 278 bytes --]
Hi, when I killed an OpenCL host process, the kernels it launched were not
terminated, and still run.
My OpenCL runtime is AMDGPU-PRO 20.20. OS Ubuntu 18.04.5 with Linux Kernel
5.4.53
I was wondering if it was a bug or the driver did not implement this
"watchdog" mechanism.
[-- Attachment #1.2: Type: text/html, Size: 372 bytes --]
[-- Attachment #2: Type: text/plain, Size: 154 bytes --]
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Compute kernels still run when the host process exit?
2021-04-01 14:07 [amdgpu] Compute kernels still run when the host process exit? Smith John
@ 2021-04-01 18:22 ` Alex Deucher
2021-04-06 15:35 ` Felix Kuehling
2021-04-07 9:36 ` Christian König
0 siblings, 2 replies; 4+ messages in thread
From: Alex Deucher @ 2021-04-01 18:22 UTC (permalink / raw)
To: Smith John; +Cc: amd-gfx list
On Thu, Apr 1, 2021 at 10:08 AM Smith John <ls.cat.kth@gmail.com> wrote:
>
> Hi, when I killed an OpenCL host process, the kernels it launched were not terminated, and still run.
>
> My OpenCL runtime is AMDGPU-PRO 20.20. OS Ubuntu 18.04.5 with Linux Kernel 5.4.53
>
> I was wondering if it was a bug or the driver did not implement this "watchdog" mechanism.
In general, once you issue work on the GPU it has to run to
completion. It is not stopped if the application that issued it goes
away.
Alex
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Compute kernels still run when the host process exit?
2021-04-01 18:22 ` Alex Deucher
@ 2021-04-06 15:35 ` Felix Kuehling
2021-04-07 9:36 ` Christian König
1 sibling, 0 replies; 4+ messages in thread
From: Felix Kuehling @ 2021-04-06 15:35 UTC (permalink / raw)
To: Alex Deucher, Smith John; +Cc: amd-gfx list
Am 2021-04-01 um 2:22 p.m. schrieb Alex Deucher:
> On Thu, Apr 1, 2021 at 10:08 AM Smith John <ls.cat.kth@gmail.com> wrote:
>> Hi, when I killed an OpenCL host process, the kernels it launched were not terminated, and still run.
>>
>> My OpenCL runtime is AMDGPU-PRO 20.20. OS Ubuntu 18.04.5 with Linux Kernel 5.4.53
>>
>> I was wondering if it was a bug or the driver did not implement this "watchdog" mechanism.
> In general, once you issue work on the GPU it has to run to
> completion. It is not stopped if the application that issued it goes
> away.
If this is using KFD, we destroy user mode queues and free all the
process' memory at process termination. Because we support CWSR, we can
interrupt running shaders. Is this using the legacy OpenCL?
Regards,
Felix
>
> Alex
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [amdgpu] Compute kernels still run when the host process exit?
2021-04-01 18:22 ` Alex Deucher
2021-04-06 15:35 ` Felix Kuehling
@ 2021-04-07 9:36 ` Christian König
1 sibling, 0 replies; 4+ messages in thread
From: Christian König @ 2021-04-07 9:36 UTC (permalink / raw)
To: Alex Deucher, Smith John; +Cc: amd-gfx list
Am 01.04.21 um 20:22 schrieb Alex Deucher:
> On Thu, Apr 1, 2021 at 10:08 AM Smith John <ls.cat.kth@gmail.com> wrote:
>> Hi, when I killed an OpenCL host process, the kernels it launched were not terminated, and still run.
>>
>> My OpenCL runtime is AMDGPU-PRO 20.20. OS Ubuntu 18.04.5 with Linux Kernel 5.4.53
>>
>> I was wondering if it was a bug or the driver did not implement this "watchdog" mechanism.
> In general, once you issue work on the GPU it has to run to
> completion. It is not stopped if the application that issued it goes
> away.
Well that is not 100% correct.
When the job has already been pushed to the hardware it indeed runs till
the end.
But when the job is still in the scheduler and the process which has
submitted it is killed we also throw away the job.
This obviously only counts for the classic stack and not for the KFD.
Christian.
>
> Alex
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-04-07 9:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-01 14:07 [amdgpu] Compute kernels still run when the host process exit? Smith John
2021-04-01 18:22 ` Alex Deucher
2021-04-06 15:35 ` Felix Kuehling
2021-04-07 9:36 ` Christian König
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.