Comments (3)
Hi hrj,
Thank you for showing interest in my project!
I'm using the version that is linked to in the README file. That is, the one on my GitHub page (https://github.com/macroing/aparapi), which is based on an earlier version of the original Aparapi project.
To add support for Linux, you'd have to compile the Aparapi project for Linux. Or, you could change it to the original Aparapi project and update the code in org.dayflower.pathtracer.kernel.RendererKernel.java that uses my custom code for Aparapi. I implemented a bunch of methods in that version of Aparapi, but I think I only use one or so in this project.
from dayflower-path-tracer.
Thanks @macroing for getting back. I did a quick attempt at compiling macroing/aparapi
, but it failed with this output:
Buildfile: /home/user/aparapi/build.xml
clean:
clean:
clean:
clean:
clean:
clean:
clean:
clean:
clean:
clean:
[echo] OS Name: Linux
[echo] OS Version: 4.10.0-42-generic
[echo] OS Arch: amd64
[echo] Java Version: 1.8.0_131
clean:
clean:
clean:
clean:
clean:
[echo] This project REQUIRES NBODY to be built first!!!
clean:
[echo] OS Name: Linux
[echo] OS Version: 4.10.0-42-generic
[echo] OS Arch: amd64
clean:
[echo] OS Name: Linux
[echo] OS Version: 4.10.0-42-generic
[echo] OS Arch: amd64
clean:
[echo] OS Name: Linux
[echo] OS Version: 4.10.0-42-generic
[echo] OS Arch: amd64
[echo] Java Ver: 1.8.0_131
[echo]
[echo] Note: Since AMD APP SDK 2.9 you can have multiple versions installed/co-exist on same machine,
[echo] so AMD introduced a completely new naming convention for their installation directories
[echo] For example C:/Program Files/AMD APP SDK/2.9-1
[echo]
init:
[echo] amd.app.sdk.dir ${amd.app.sdk.dir}
[echo] intel.app.sdk.dir ${intel.app.sdk.dir}
[echo] freebsd.app.sdk.dir ${freebsd.app.sdk.dir}
[echo] vendor.name ${vendor.name}
[echo] app.sdk.dir ${app.sdk.dir}
[echo] msvc.dir ${msvc.dir}
[echo] msvc.sdk.dir ${msvc.sdk.dir}
check:
BUILD FAILED
/home/user/aparapi/build.xml:40: The following error occurred while executing this line:
/home/user/aparapi/com.amd.aparapi.jni/build.xml:486: Error:
You will need to edit com.amd.aparapi.jni/build.xml to compile aparapi JNI code
You need to set app.sdk.dir to point to the location where OpenCL SDK is installed
Looks like it needs some OpenCL SDK to be installed and I have no idea what that means.
Any hints appreciated!
from dayflower-path-tracer.
Yes, you're correct, you need some OpenCL SDK to compile it. The natives from the SDK are required. You can download the AMD APP SDK for example. I use that one.
I tried to port the project back to the original Aparapi, but I was not successful. Some unsatisfied link error occurred and I don't know why. I included the natives as part of the library in Eclipse, but that didn't change anything. The original project has only one release, which is from 2014, so maybe that has something to do with it.
If you try the old Aparapi yourself, the only thing you need to change, is to add the following code to org.dayflower.pathtracer.kernel.AbstractKernel.java
:
public final float asinpi(final float a) {
return asin(a) * PI_RECIPROCAL;
}
from dayflower-path-tracer.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dayflower-path-tracer.