aparapi-examples icon indicating copy to clipboard operation
aparapi-examples copied to clipboard

Error: Kernel overall local size: 1024 exceeds maximum kernel allowed local size of: 256

Open MikeTheSnowman opened this issue 9 months ago • 0 comments

I'm very new to aparapi, so please excuse me if this is a very easy fix.

My system:

  • OS: Windows 11
  • Java version: 19 (corretto-19)
  • GPU: Nvidia RTX 4090 (notebook)

When trying to build the example project I get the following error:

...
2024-05-19 23:40:23 DEBUG CorrMatrixHost:330 - Range: 2D(global:512x512 local:(derived)32x32)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffae5cf3a8b, pid=31148, tid=35944
#
# JRE version: OpenJDK Runtime Environment Corretto-19.0.2.7.1 (19.0.2+7) (build 19.0.2+7-FR)
# Java VM: OpenJDK 64-Bit Server VM Corretto-19.0.2.7.1 (19.0.2+7-FR, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# C  [msvcrt.dll+0x53a8b]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Users\mike\IdeaProjects\aparapi-examples\hs_err_pid31148.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/corretto/corretto-19/issues/
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
WARNING: Aparapi is running on an untested OpenCL platform version: OpenCL 3.0 CUDA 12.3.107
WARNING: Aparapi is running on an untested OpenCL platform version: OpenCL 3.0 
!!!!!!! Kernel overall local size: 1024 exceeds maximum kernel allowed local size of: 256 failed 
Process finished with exit code 1

Is there a recommendation on what I need to modify in the example project to get it to package?

MikeTheSnowman avatar May 19 '24 13:05 MikeTheSnowman