dependabot[bot] on bundler
dependabot[bot] on bundler
Bump rack from 2.1.1 to 2.2.6.2… (compare)
(Advanced apologies for not knowing how to use code formatting here)
Thanks for the quick response.
It does not seem as though I have clinfo (or I don't know how to use it) despite the fact my lastest Nvidia drivers should have OpenCL included.
Other information:
I have run List<OpenCLPlatform> platforms = (new OpenCLPlatform()).getOpenCLPlatforms(); and it returns 0 meaning it does not appear to be detecting any OpenCL platforms on my PC. If the case were to be that there were no OpenCL platforms, then I am unsure how else I would go about installing it for an Nvidia GPU other than updating drivers.
Java Alternative Algorithm
Found 1 platform
Platform Apple
Found 1 device
Device Apple M1 Max supports OpenCL 1.2
matthewgroth@Matthews-MBP aparapi-examples % mvn clean package exec:java
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.aparapi:aparapi-examples:jar:3.0.0
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:exec-maven-plugin is missing. @ line 125, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]
[INFO] --------------------< com.aparapi:aparapi-examples >--------------------
[INFO] Building Aparapi Examples 3.0.0
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.aparapi:aparapi:jar:3.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.318 s
[INFO] Finished at: 2022-02-05T00:57:40-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project aparapi-examples: Could not resolve dependencies for project com.aparapi:aparapi-examples:jar:3.0.0: com.aparapi:aparapi:jar:3.0.0-SNAPSHOT was not found in https://oss.sonatype.org/content/repositories/snapshots during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of ossrh.snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
matthewgroth@Matthews-MBP aparapi-examples %
pom.xml
edit to make it depend on the regular 3.0.0 jar instead of the SNAPSHOT and tried again. Got some ugly errors:
# Created at 2022-02-05T01:08:11.584
Unrecognized VM option 'MaxPermSize=256m'
# Created at 2022-02-05T01:08:11.588
Error: Could not create the Java Virtual Machine.
# Created at 2022-02-05T01:08:11.589
Error: A fatal exception has occurred. Program will exit.
matthewgroth@Matthews-MBP surefire-reports % clinfo
Number of platforms 1
Platform Name Apple
Platform Vendor Apple
Platform Version OpenCL 1.2 (Nov 13 2021 00:45:09)
Platform Profile FULL_PROFILE
Platform Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
Platform Name Apple
Number of devices 1
Device Name Apple M1 Max
Device Vendor Apple
Device Vendor ID x1027f00
Device Version OpenCL 1.2
Driver Version 1.2 1.0
Device OpenCL C Version OpenCL C 1.2
Device Type GPU
Device Profile FULL_PROFILE
Device Available Yes
Compiler Available Yes
Linker Available Yes
Max compute units 32
Max clock frequency 000MHz
Device Partition (core)
Max number of sub-devices 0
Supported partition types None
Supported affinity domains (n/a)
Max work item dimensions 3
Max work item sizes 56x256x256
Max work group size 256
Preferred work group size multiple (kernel) 32
Preferred / native vector sizes
char 1 / 1
short 1 / 1
int 1 / 1
long 1 / 1
half 0 / 0 (n/a)
float 1 / 1
double 1 / 1 (n/a)
Half-precision Floating-point support (n/a)
Single-precision Floating-point support (core)
Denormals No
Infinity and NANs Yes
Round to nearest Yes
Round to zero Yes
Round to infinity Yes
IEEE754-2008 fused multiply-add Yes
Support is emulated in software No
Correctly-rounded divide and sqrt operations Yes
Double-precision Floating-point support (n/a)
Address bits 64, Little-Endian
Global memory size 45812989952 (42.7GiB)
Error Correction support No
Max memory allocation 8589934592 (GiB)
Unified memory for Host and Device Yes
Minimum alignment for any data type 1 bytes
Alignment of base address 32768 bits (4096 bytes)
Global Memory cache type None
Image support Yes
Max number of samplers per kernel 32
Max size for D images from buffer 268435456 pixels
Max D or D image array size 2048 images
Base address alignment for D image buffers 256 bytes
Pitch alignment for D image buffers 256 pixels
Max D image size 6384x16384 pixels
Max D image size 048x2048x2048 pixels
Max number of read image args 128
Max number of write image args 8
Local memory type Local
Local memory size 32768 (2KiB)
Max number of constant args 31
Max constant buffer size 1073741824 (024MiB)
Max size of kernel argument 4096 (KiB)
Queue properties
Out-of-order execution No
Profiling Yes
Prefer user sync for interop Yes
Profiling timer resolution 000ns
Execution capabilities
Run OpenCL kernels Yes
Run native kernels No
printf() buffer size 1048576 (024KiB)
Built-in kernels (n/a)
Device Extensions cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_byte_addressable_store cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_depth_images
NULL platform behavior
clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...) Apple
clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...) Success [P0]
clCreateContext(NULL, ...) [default] Success [P0]
clCreateContextFromType(NULL, CL_DEVICE_TYPE_DEFAULT) Success (1)
Platform Name Apple
Device Name Apple M1 Max
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU) Success (1)
Platform Name Apple
Device Name Apple M1 Max
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR) No devices found in platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM) Invalid device type for platform
clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL) Success (1)
Platform Name Apple
Device Name Apple M1 Max
matthewgroth@Matthews-MBP surefire-reports %
NativeLoader.load()
and gotCaused by: java.lang.UnsatisfiedLinkError: /private/var/folders/fq/hkrz_j5j5458x6yty_c9k0v40000gn/T/Aparapi153186659225701714/libaparapi.dylib: dlopen(/private/var/folders/fq/hkrz_j5j5458x6yty_c9k0v40000gn/T/Aparapi153186659225701714/libaparapi.dylib, 0x0001): tried: '/Users/mathewgroth/Desktop/libaparapi.dylib' (no such file), '/private/var/folders/fq/hkrz_j5j5458x6yty_c9k0v40000gn/T/Aparapi153186659225701714/libaparapi.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/lib/libaparapi.dylib' (no such file)
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:383)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:227)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:169)
libaparapi.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')
Cannot invoke "com.aparapi.internal.model.ClassModel$AttributePool$CodeEntry.getExceptionPoolEntries()" because the return value of "com.aparapi.internal.model.ClassModel$ClassModelMethod.getCodeEntry()" is null