Saalma / aparapi

Automatically exported from code.google.com/p/aparapi
Other
0 stars 0 forks source link

failed to load natives issue on mac with : Aparapi_2012_01_23_MacOSX #112

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use last version of aparapi on mac
2.
3.

What is the expected output? What do you see instead?
-the sketch is running on JTP mode
-returning the following message:

---
Check your environment. Failed to load aparapi native library aparapi_x86 or 
possibly failed to locate opencl native library (opencl.dll/opencl.so). Ensure 
that both are in your PATH (windows) or in LD_LIBRARY_PATH (linux).
range = global:1049088 local:256
Execution mode = JTP

---
What version of the product are you using? On what operating system?
- Aparapi_2012_01_23_MacOSX
- OSX 10.8.3 / Intel Core i7

Please provide any additional information below.
The sketch works but does not seem to find the native library. I found a 
similar solved issue for Windows but it seems to me that OSX is now using 
Opencl 1.2 and should not be a problem...

Original issue reported on code.google.com by pierre.c...@gmail.com on 26 May 2013 at 12:54

GoogleCodeExporter commented 8 years ago
Pierre,

Do any of the examples work? or does any attempt to use Aparapi fail for you. 

I have a MacBook pro (Darwin Kernel Version 12.3.0: RELEASE_X86_64 x86_64)

The examples all work for me from 'Aparapi_2012_01_23_MacOSX'

Have you successfully ran another OpenCL application?  Is it possible that 
Aparapi is failing to locate OpenCL runtime?

Gary

Original comment by frost.g...@gmail.com on 28 May 2013 at 12:17

GoogleCodeExporter commented 8 years ago
Hi Gary,
yes both examples, 'Gray Scott' and 'Life', are running. But only on JTP mode 
and without being able to find the native library. I have tried with another 
library for Processing (msaOpenCL) and it seems to work well. I think I have 
the appropriate java binding and my MAC is using OpenCL 1.2 as well. I am not 
sure how aparapi could find the native lib then. Should I directly copy 
'OpenCL.so' into the sketch folder or is it a deeper problem?
Pierre

Original comment by pierre.c...@gmail.com on 28 May 2013 at 12:33

GoogleCodeExporter commented 8 years ago
Can you confirm that the directory you set with -Djava.library.path contains 
libaparapi_x86_64.dylib 

When you say 'sketch' folder, do you have access to the java command line when 
you run these?  If not how are you setting the library path

I have attached a small c++/opencl application (cltest_x86_64).  Can you run it?

Gary

Original comment by frost.g...@gmail.com on 28 May 2013 at 4:48

Attachments: