Open BoundaryValueProblems opened 7 years ago
I investigated a bit more, and found out that the problems are mainly in Linear Algebra functions:
@test sumabs2(Array(chol(ad*ad')) - chol(a*a')) < 1e-5
@test sumabs2(Array(ctranspose(chol(ad*ad'))) - ctranspose(chol(a*a'))) < 1e-5
ud, sd, vtd = svd(ad)
u, s, v = svd(a)
@test sumabs(Array(ud) - u) < 1e-4
@test sumabs(Array(sd) - s) < 1e-4
@test sumabs(Array(vtd') - v) < 1e-4
If I comment out the above lines, the test proceeds much further.
Yet one more issue I encountered. Pkg.test("ArrayFire")
after commenting out those Linalg lines, I got the following warning and error upon exits:
Warning: Program terminating, but clFFT resources not freed.
Please consider explicitly calling clfftTeardown( ).
==============================[ ERROR: ArrayFire ]==============================
failed process: Process(`'C:\Program Files\Julia-0.5.2\bin\julia' -Cx86-64 '-JC:\Program Files\Julia-0.5.2\lib\julia\sys.dll' --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=no --compilecache=yes 'C:\Users\BVP\.julia\v0.5\ArrayFire\test\runtests.jl'`, ProcessExited(3221225477)) [3221225477]
================================================================================
ArrayFire had test errors
in test at base\pkg\pkg.jl:258
in #test#3 at base\pkg\pkg.jl:258
in #cd at base\<missing>
in #cd#1 at base\pkg\dir.jl:31
in cd at base\file.jl:48
in #2 at base\pkg\dir.jl:31
in #test at base\<missing>
in #test#61 at base\pkg\entry.jl:748
Hi @BoundaryValueProblems, I have not tested this package on Windows properly to be honest. I think you need to have installed Visual Studio and a bunch of other things especially if you're installing ArrayFire built with CUDA. It looks like you installed the OpenCL version. Were you able to run the c++ tests too?
Hi @ranjanan. Thanks for your reply. Well, I haven't tried to compile the c++ codes in ArrayFire/examples/ yet. I just installed make and cmake on my Windows machine. I already have installed GNU C, g++, etc., via git bash for windows. However, when I tried to compile those examples supplied by ArrayFire, cmake complains by saying that:
$ cmake ..
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (PROJECT):
The CMAKE_C_COMPILER:
cl
is not a full path and was not found in the PATH.
To use the NMake generator with Visual C++, cmake must be run from a shell
that can use the compiler cl from the command line. This environment is
unable to invoke the cl compiler. To fix this problem, run cmake from the
Visual Studio Command Prompt (vcvarsall.bat).
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
Do I really need to install Visual Studio? Is GNU C/g++ not enough? By the way, I don't think I installed the OpenCL yet. I just want to use ArrayFire not for CUDA/OpenCL, but for my current CPU on my windows machine.
Did you make sure you followed the instructions here? It looks like it lists Visual Studio as a prerequisite.
Well, Microsoft Visual Studio is a Microsoft software product, which I have to buy; Am I correct?
Ah I'm sure they have a community version which you can download for free.
Hello. I think I installed
arrayfire
library (version 3.4.2) for Windows correctly. My julia version is 0.5.2. Upon runningPkg.test("ArrayFire")
, I got the following errors. I want to note that there was no problem withPkg.test("ArrayFire")
on my Mac OS X though. Here are the errors on my Windows machine:I would greatly appreciate your help! Best, BVP