Questions tagged [aparapi]

Aparapi is a Java API that allows developers to leverage a GPU by dynamically converting Java bytecode to OpenCL at runtime.

Aparapi allows developers to write native Java code capable of being executed directly on a graphics card GPU by converting Java byte code to an OpenCL kernel dynamically at runtime. It is Open-source under the Apache License, version 2. Because it is backed by OpenCL Aparapi is compatible with all OpenCL compatible Graphics Cards.

Originally a project conceived and developed by AMD corporation. It was later abandoned by AMD and sat mostly idle for several years. Despite this there were some failed efforts by the community to keep the project alive, but without a clear community leader no new releases ever came. Eventually the project was resurrected and has been active since 2016. Since then the project has had several releases a year.

More information:

40 questions
0
votes
0 answers

ERROR exceeds maximum kernel allowed local size

When I use Aparapi with an AMD Radeon R7 450 graphics card with older drivers installed, the maximum value of the size parameter in the code below can be 268,435,455. Which corresponds to the 2D image size 16384 X 16384 = 268,435,456 (screenshot…
forreg16
  • 21
  • 2
0
votes
2 answers

Error: "UnsatisfedLinkError: com.aparapi.internal.jni.OPENCLJNI.getPlatforms()" JNI configuration

I would try to execute an example script based on Aparapi, on MAC OS. I'm using the last version of Eclipse, but when I execute DeviceInfo example to get all the available devices: public class DeviceInfo { public static void main(String[] args)…
Stefano
  • 409
  • 1
  • 5
  • 10
0
votes
0 answers

Aparapi: not invoking GPU

I have a GPU on my system: When running with CPU: package com.example.gpuexample; import java.util.concurrent.ThreadLocalRandom; import com.aparapi.Kernel; import com.aparapi.Range; public class Main { public static void main(String[] args)…
gammay
  • 5,957
  • 7
  • 32
  • 51
0
votes
2 answers

OpenCL (aparapi) simple reduction slow on Radeon

I am trying to code a simple reduction (in this case a sum) over a large double array in OpenCL. I have looked at online tutorials and found that this is essentially the way to solve my problem: #pragma OPENCL EXTENSION cl_khr_fp64 : enable typedef…
user1531083
  • 750
  • 6
  • 15
0
votes
0 answers

issues Running GPUGalaxySim.java using aparapi jar in Oracle Java Development Kit on Windows

I've written a program that does some calculations to display a galaxy.I want to run it within jdk command prompt but i get this error.Compiling the program with aparapi works fine.When i try to run it,i get this: Btw after i compile it I get many…
0
votes
0 answers

Aparapi multiple put/get seems to have no effects

I am facing a problem by using explicit buffer management with Aparapi. The code hereafter shows that I am trying to manage several put/get in a loop to refresh/get-back data from GPU. It seems that the first put and get are done but not the…
Gaetan E.
  • 401
  • 4
  • 10
0
votes
1 answer

How to see Aparapi generated OpenCL code

I am having Aparapi translating Java code to OpenCL. However I wonder how I can see the generated OpenCL code. The website says "by using adding -Dcom.amd.aparapi.enableShowGeneratedOpenCL=true to your command line when you start your JVM". Being…
user3341779
  • 29
  • 2
  • 6
0
votes
1 answer

Is Aparapi provide task parallism?

Is aparapi (API in java for Open CL) provides task parallelism or it provides only data parallelism. If provides task parallelism, is it guarantee that tasks will execute on separate devices
0
votes
1 answer

aparapi start index of getGlobalId()

i use aparapi for parallelize and i wante to convert this java code: public static void main(String[] args) { float res = 0; for (int i = 2; i < 5; i++) { for (int j = 3; j < 5; j++) { res += i * j; …
-1
votes
2 answers

Cannot compile java file using javac command under JDK on ubuntu (APARAPI)

I have run the same command under windows using the windows Java Development Kit and it worked.Now i try to run it ubuntu and i get this error.Please help
1 2
3