Skip to content
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

Sample of "AlgorithmsRadixSort" failed on OpenCL device #1116

Open
GeoBIM2020 opened this issue Oct 30, 2023 · 4 comments
Open

Sample of "AlgorithmsRadixSort" failed on OpenCL device #1116

GeoBIM2020 opened this issue Oct 30, 2023 · 4 comments

Comments

@GeoBIM2020
Copy link

The OpenCL device is 11th Gen Intel(R) Core i9-11980HK.

Following is error message:

Performing operations on 11th Gen Intel(R) Core(TM) i9-11980HK @ 2.60GHz [Type: OpenCL, WarpSize: 0, MaxNumThreadsPerGroup: 8192, MemorySize: 34046320640]
Unhandled exception. ILGPU.Runtime.OpenCL.CLException: Exception of type 'ILGPU.Runtime.OpenCL.CLException' was thrown.
at ILGPULauncher(Kernel, AcceleratorStream, KernelConfig, ArrayView1D2, ArrayView1, SpecializedValue1, Int32, Int32, Int32) at ILGPULauncher(SpecializationCache3, AcceleratorStream, KernelConfig, ArrayView1D2, ArrayView1, SpecializedValue1, Int32, Int32, Int32) at ILGPU.Algorithms.RadixSortExtensions.<>c__DisplayClass23_23.b__1(AcceleratorStream stream, ArrayView1D2 input, ArrayView1 tempView) in C:\Users\17058\source\ILGPU\Nov\Src\ILGPU.Algorithms\RadixSortExtensions.cs:line 1261
at AlgorithmsRadixSort.Program.Main() in C:\Users\17058\source\ILGPU\Nov\Samples\AlgorithmsRadixSort\Program.cs:line 77

@m4rs-mt
Copy link
Owner

m4rs-mt commented Nov 2, 2023

Hi @GeoBIM2020, welcome to the ILGPU community. Thank you very much for raising this issue. Unfortunately, I'm not able to reproduce your issue at the moment. It may be an issue with an actual driver (version) being used. @MoFtZ maybe you have additional insights into this issue at the moment?

@MoFtZ
Copy link
Collaborator

MoFtZ commented Nov 14, 2023

@m4rs-mt I currently have access to a 10th Gen Intel Laptop CPU, and a 7th Gen Intel Desktop CPU, and have not been able to reproduce the problem either.

However, it is interesting that @GeoBIM2020 's CPU has MaxNumThreadsPerGroup: 8192. It is higher than I would expect, and I'm wondering if there is a driver issue, or if ILGPU is doing something wrong with OpenCL?

@m4rs-mt
Copy link
Owner

m4rs-mt commented Nov 14, 2023

@MoFtZ I fully agree regarding the MaxNumThreadsPerGroup. In my opinion, this value should ideally fall within the range of [4, 128] (usually).

@GeoBIM2020
Copy link
Author

@m4rs-mt @MoFtZ There is no updated driver available for my CPU. Please let me know if you need me to do something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants