aparapi | Experimental version of AMD Aparapi library | GPU library
kandi X-RAY | aparapi Summary
kandi X-RAY | aparapi Summary
Aparapi is developed by AMD. It was opensourced recently (under a MIT-style license. It allows to dynamically recompile Java methods into OpenCL kernels on AMD GPU hardware (or using CPU version of OpenCL from AMD APP SDK). Aparapi is supported on Linux and Windows. This repository will hold my experimental patches to Aparapi. Currently the main goals are supporting different hardware (non-AMD) and adding support for MacOS X. I do NOT intend to fork Aparapi or provide any support for it. If any of my patches will bring any value to you - that’s good. If not - no problem. When I’ll have anything valuable here I’ll try to bring it into offical aparapi source tree, but currently it’s way too early for this.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Main method
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Main entry point for the program
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Main entry point
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Start the game
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Entry point for the Raytracer
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Runs the BlackScholes kernel
- Prepare oop conversion buffer
- Executes the Kernel
- Executes the kernel
- Get the offset of a field
- Write to String
- Returns a list of all method calls in this instruction
- Compute rqrt vector
- Calculates the intersection of this ray with another ray
- Atomically adds a delta element to the _index
- Defines the default scene
- Checks if is OpenCL delegate method
- Removes the branch target
- Performs a trace ray
- Resolve an accessor candidate for a given accessor call
- Create a MethodDescription from a String
- This method writes out the map entry to the map
- Update accessor structures for an object member field
- Initializes the expression list
- Intersect this ray with another ray
- Set a double on an object
aparapi Key Features
aparapi Examples and Code Snippets
Community Discussions
Trending Discussions on aparapi
QUESTION
I am experimenting with using my GPU in java, I am using Aparapi but I have an issue where if I use (float)Math.sin(x) it still falls back to the CPU because my GPU doesn't support F64. is there a Math library for floats? should I be using the gpu to calculate sins at all?
...ANSWER
Answered 2020-Apr-05 at 23:21I would expect a project like this to come with math routines of its own so that you can call functions implemented on the GPU.
And it does: Kernel.sin(float)
in Aparapi should map to a call to the OpenCL sin function.
Whether it makes sense to do trig on the GPU, that's for you to evaluate.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install aparapi
You can use aparapi like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the aparapi component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page