-
Notifications
You must be signed in to change notification settings - Fork 5
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
Port all functions from ArrayFire 3.4 #7
Comments
Hi there, This is what I achieved. Installed Ubuntu 14.04 with AMD Catalyst 15.302 in a Dell7910 with 2 Xeon E5-2609 v3, 32Gb RAM, Fury tri-X R9 GPU Compiled & run arrayfire examples, but it runtime complained. ./blas_opencl peak 4434.43 GFLOPSInstalled Revolutions R with MKL
Cheers Aurelio |
@AurelioG I see that the C/C++ version is using 3.3.2 where as you are loading 3.2 for R. Can you try with 3.3 ? I just ran the same code on an R9 Fury nano and did not get any errors. If that doesn't work, can you post the output of |
No Joy yet.. I tried 3.0 and could not install properly. I tried different things starting from clean install and probably glfw is a source of headache, arrayfire binaries or compile is another flavour of problems. Here is what works with arrayfire-r > afInfo()
ArrayFire v3.4.0 (OpenCL, 64-bit Linux, build 4d625e7)
[0] AMD : Fiji, 3784 MB
-1- AMD : Intel(R) Xeon(R) CPU E5-2609 v3 @ 1.90GHz, 32099 MB
> a <- c(1:100)
> b <- array(a)
> c<-afArray(b)
> f<-afArray(b,type = "single")
> aa <- f*f + c*c
> afPrint(aa)
No Name Array
[100 1 1 1]
Internal Error: finding libraries failed!
Linker phase failed compilation.
Error: Compilation from LLVMIR binary to IL text failed!
-D dim_t=long
Error in afPrint(aa) : In function print
In file src/api/c/print.cpp:89
> a <-1.4
> a <-aa
> afPrint(a)
No Name Array
[100 1 1 1]
/tmp/OCL4493T26.cl:249:12: error: use of undeclared identifier 'val6'; did you mean 'all'?
out[idx] = val6;
^~~~
all
/app/workarea/15.302/stream/opencl/compiler/clc2/ocl-headers/build/lnx64a/B_rel/opencl12_builtins.h:3125:46: note: 'all' declared here
int const_func __attribute__((overloadable)) all(long16 x);
^
/tmp/OCL4493T26.cl:249:12: error: taking address of function is not allowed
out[idx] = val6;
^
error: Clang front-end compilation failed!
Frontend phase failed compilation.
-D dim_t=long
Error in afPrint(a) : In function print
In file src/api/c/print.cpp:89 This is my Arrayfire manifest
This is my CLinfo
|
@AurelioG That's weird. I tried the same code on my machine without any issues..
The error you are seeing seems to be coming from the OpenCL driver.. |
Apparently this can happen if you have an older version of AMDAPPSDK installed along side the newer version. Can you check if that is the case? |
Here is the R output with a clean Ubuntu 14.04 install, but my R snippet didn't work. However the errors are different. The arrayfire examples were OK, except for the graphics. This time I didn't install OpenCL GL headers, mesa or other stuff that could interfere with the AMD SDK. So my question is ¿how to set up a working OpenCL environment for arrayfire-r? I'm not interested (yet) in the arrayfire graphic capabilities. Previously, I tried to disable GLFW when compiling Arrayfire, but I got errors complaining about glfw. Cheers,
This is the log of installed dependencies. sudo apt-get uptdate |
@AurelioG is that the end of the error message ? If not, can you run your script after running |
Yes it was the end of the R printout in RStudio! In the the bash terminal worked ok. export AF_PRINT_ERRORS=1 The a.r.Rout: R version 3.2.4 (2016-03-16) -- "Very Secure Dishes" R is free software and comes with ABSOLUTELY NO WARRANTY. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'demo()' for some demos, 'help()' for on-line help, or Microsoft R Open 3.2.4 Multithreaded BLAS/LAPACK libraries detected. Using 12 cores for math algorithms.
Attaching package: ‘arrayfire’ The following objects are masked from ‘package:stats’:
|
@AurelioG let me try out RStudio and see what's going wrong. I have only ever used command line. |
Each header "foo" file should have the following:
Also add tests if possible, though they are not necessary
C++ only headers that are not being ported
The text was updated successfully, but these errors were encountered: