cancel
Showing results for 
Search instead for 
Did you mean: 

OpenCL

Highlighted
Elite
Elite

Hang in clFinish on gfx902 (Vega M GH)

Steps to reproduce:

1. Prepare a binary for gfx902 using the CL_CONTEXT_OFFLINE_DEVICES_AMD approach (offline compilation)

2. Find the AMD platform by name ('Advanced Micro Devices, Inc')

3. Create an OpenCL context with CL_DEVICE_TYPE_GPU

4. Load and build the program (clCreateProgramWithBinary, clBuildProgram)

5. Create 4 queues

6. Enqueue several kernel calls in one of the queues

7. Call clFinish on the queues

Expected outcome:

clFinish returns

Observed outcome:

clFinish hangs, call stack:

     ntdll.dll!NtWaitForSingleObject()    Unknown
     KERNELBASE.dll!WaitForSingleObjectEx()    Unknown
     amdocl64.dll!00007ff806264e49()    Unknown
     amdocl64.dll!00007ff80625df88()    Unknown
     amdocl64.dll!00007ff80625fd5a()    Unknown
     amdocl64.dll!00007ff80624a51c()    Unknown

Unfortunately I do not have direct access to the device to prepare a mimimalistic test case, but can provide an EXE for further investigation on request.

Tags (1)
0 Kudos
Reply
9 Replies
Highlighted
Staff
Staff

Re: Hang in clFinish on gfx902 (Vega M GH)

Thank you for reporting it.

Please provide the executable and the offline binary that can be used to reproduce the issue.

Thanks.

0 Kudos
Reply
Highlighted
Elite
Elite

Re: Hang in clFinish on gfx902 (Vega M GH)

Thank you dipak.

Please check your inbox.

0 Kudos
Reply
Highlighted
Staff
Staff

Re: Hang in clFinish on gfx902 (Vega M GH)

Thank you. I'll check and reply via PM.

0 Kudos
Reply
Highlighted
Staff
Staff

Re: Hang in clFinish on gfx902 (Vega M GH)

I've created a ticket against the issue. Once I get any update on this, I'll let you know.

Thanks.

0 Kudos
Reply
Highlighted
Staff
Staff

Re: Hang in clFinish on gfx902 (Vega M GH)

Just for reference, another user ( samsam ) has reported a similar issue here:  RX Vega M GH is detected incorrectly using AMD driver .

Thanks.

0 Kudos
Reply
Highlighted
Elite
Elite

Re: Hang in clFinish on gfx902 (Vega M GH)

Thank you Dipak. Another similar thread: https://community.amd.com/thread/251040 

0 Kudos
Reply
Highlighted
Staff
Staff

Re: Hang in clFinish on gfx902 (Vega M GH)

Yes, the thread was posted by the same user in our support forum.

0 Kudos
Reply
Highlighted
Adept II
Adept II

Re: Hang in clFinish on gfx902 (Vega M GH)

timchist‌ feel free to use to reproduce my minimalistic project... sorry that headers in main.c are C files, but I have no time to improve... here it is at GitHub - sowson/gpucomp: Hello GPU Compute World! 

0 Kudos
Reply
Highlighted
Elite
Elite

Re: Hang in clFinish on gfx902 (Vega M GH)

Thank you, sowson. As I said earlier, unfortunately I have no direct access to the GPU. Perhaps dipak‌ may find it useful.

0 Kudos
Reply