-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still can't run Aparapi v1.10.0 - v1.8.0 on Mac OSX (MacBook Pro 2x GPU).. but v1.7.0 works #148
Comments
I should have time to look at this tomorrow. I'm out in the city today.
…On Tue, Jul 16, 2019, 11:42 AM Orvar Ehn ***@***.***> wrote:
Related to #122 <#122>
Just trying out aparapi I ran the aparapi-examples .. and got the failing
tests when trying to build v1.9.0 (and v1.8.0) .. since discovering #122
<#122> I tried v1.7.0 and
(after turning of JavaDoc generation that for some reason failed) I can get
the examples to run on my MacBook Pro.
So I thought that v1.10.0 had the bugfix for this issue and tried an
example "devices in preferred order"
public class DeviceInfo {
public static void main(String[] args) {
KernelPreferences preferences = KernelManager.instance().getDefaultPreferences();
System.out.println("-- Devices in preferred order --");
for (Device device : preferences.getPreferredDevices(null)) {
System.out.println("----------");
System.out.println(device);
}
}
}
This crashes with:
Jul 16, 2019 11:32:10 AM com.aparapi.internal.opencl.OpenCLLoader
SEVERE: Check your environment. Failed to load codegen native library or
possibly failed to locate opencl native library (opencl.dll/opencl.so).
Ensure that OpenCL is in your PATH (windows) or in LD_LIBRARY_PATH (linux).
But works if I change to version 1.7.0:
-- Devices in preferred order -- Device 16925952
vendor = Apple
type:GPU
maxComputeUnits=24
maxWorkItemDimensions=3
maxWorkItemSizes={256, 256, 256}
maxWorkWorkGroupSize=256
globalMemSize=1610612736
localMemSize=65536 Device 16915456
vendor = Apple
type:GPU
maxComputeUnits=10
maxWorkItemDimensions=3
maxWorkItemSizes={256, 256, 256}
maxWorkWorkGroupSize=256
globalMemSize=2147483648
localMemSize=32768 Device 4294967295
vendor = Apple
type:CPU
maxComputeUnits=8
maxWorkItemDimensions=3
maxWorkItemSizes={1024, 1, 1}
maxWorkWorkGroupSize=1024
globalMemSize=17179869184
localMemSize=32768 Java Alternative Algorithm
Java Thread Pool
Process finished with exit code 0
Is this another bug? or how can I use the latest version with the bugfix
in it?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#148?email_source=notifications&email_token=AFRVQ3YXEK5TYYMLZ7ULPE3P7WJWPA5CNFSM4ID7BAXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G7NRO3A>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFRVQ36GUX4KB7M56NM57WLP7WJWPANCNFSM4ID7BAXA>
.
|
I had the same issues running on macOS 10.13 or 10.14 for any Aparapi versions greater than 1.7.0. |
This is quite odd as it does run for me on the latest on macOS... At least
i think so. Let me try replicating this again my memory might be faulty.
…On Fri, Jul 19, 2019 at 9:36 PM jchan007 ***@***.***> wrote:
I had the same issues running on macOS for any Aparapi versions greater
than 1.7.0.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#148?email_source=notifications&email_token=AAXESAU4DGYA3L36OGUHL5LQAIJVXA5CNFSM4ID7BAXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2MR26Q#issuecomment-513351034>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAXESAQWQXTQMEUAFNOARD3QAIJVXANCNFSM4ID7BAXA>
.
|
If it is any help this is my Macs hardware and graphics: Hardware Overview: Model Name: MacBook Pro Intel HD Graphics 530: Chipset Model: Intel HD Graphics 530 Radeon Pro 450: Chipset Model: AMD Radeon Pro 450 |
On macOS for aparapi 1.10.0 runtime UnsatisfiedLinkError with aparapi-jni 1.3.0, 1.3.1, 1.4.0, or 1.4.1, I found that using aparapi-jni 1.4.2-SNAPSHOT, resolved the issue! |
Definitely there is an issue with the included dynamic lib. |
Could you create the aparapi-jni 1.4.2 branch and update the pom for aparapi? |
I've been working on that the past few days actually. Trying to get clang compiler to work right now so very soon i hope. |
While you're awaiting the aparapi-jni 1.4.2 branch update, this worked for me by updating the Maven pom.xml dependencies to use the aparapi-jni 1.4.2-SNAPSHOT for my project:
|
Related to #122
Just trying out aparapi I ran the aparapi-examples .. and got the failing tests when trying to build v1.9.0 (and v1.8.0) .. since discovering #122 I tried v1.7.0 and (after turning of JavaDoc generation that for some reason failed) I can get the examples to run on my MacBook Pro.
So I thought that v1.10.0 had the bugfix for this issue and tried an example "devices in preferred order"
Jul 16, 2019 11:46:08 AM com.aparapi.internal.opencl.OpenCLLoader
SEVERE: Check your environment. Failed to load codegen native library or possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure that OpenCL is in your PATH (windows) or in LD_LIBRARY_PATH (linux).
But this works if I change to version 1.7.0
Devices in preferred order
Device 16925952
vendor = Apple
type:GPU
maxComputeUnits=24
maxWorkItemDimensions=3
maxWorkItemSizes={256, 256, 256}
maxWorkWorkGroupSize=256
globalMemSize=1610612736
localMemSize=65536
Device 16915456
vendor = Apple
type:GPU
maxComputeUnits=10
maxWorkItemDimensions=3
maxWorkItemSizes={256, 256, 256}
maxWorkWorkGroupSize=256
globalMemSize=2147483648
localMemSize=32768
Device 4294967295
vendor = Apple
type:CPU
maxComputeUnits=8
maxWorkItemDimensions=3
maxWorkItemSizes={1024, 1, 1}
maxWorkWorkGroupSize=1024
globalMemSize=17179869184
localMemSize=32768
Java Alternative Algorithm
Java Thread Pool
So is this another bug than #122 or how do I use the latest version with the bugfix?
I ran the example through Intellij IDEA ..
Regards
The text was updated successfully, but these errors were encountered: