The output is attached.
Best regards,
Sandra
El vie, 19 nov 2021 a las 14:03, Karl Rupp ()
escribió:
> Ok, so now we really need to actual compiler call from CMake. In build/:
>
> $> cmake .. -DCMAKE_VERBOSE_MAKEFILE=On
> $> make blas1
> (send output)
>
> Thanks and best regards,
> Karli
>
>
>
Ok, so now we really need to actual compiler call from CMake. In build/:
$> cmake .. -DCMAKE_VERBOSE_MAKEFILE=On
$> make blas1
(send output)
Thanks and best regards,
Karli
On 11/19/21 13:59, SANDRA CATALAN PALLARES wrote:
Hi,
The example that you mention is not in the new examples folder.
Hi,
The example that you mention is not in the new examples folder. However, I
tried with blas1 and it does not work:
jbelloch@odroid:~/EQU_FILTERING_sandra/ViennaCL-1.7.1/build$
examples/tutorial/blas1
terminate called after throwing an instance of
'viennacl::ocl::unknown_error'
what():
Can you try to build in a subfolder? Maybe there's some issue with the
build inside the project folder. Also, it would be good to start with a
fresh ViennaCL folder just to rule out any side-effects.
$> cd /path/to/ViennaCL
$> mkdir build
$> cd build
$> cmake ..
And this is the output of the cmake:
/home/jbelloch/EQU_FILTERING_sandra/cmake-3.10.0/bin/cmake ENABLE_OPENCL
-DOPENCLROOT=/home/jbelloch/EQU_FILTERING_sandra/opencl
-DOPENCL_LIBRARY=/home/jbelloch/EQU_FILTERING_sandra/opencl/lib/libOpenCL.so
ENABLE_UBLAS .
This is the last compilation command I used
jbelloch@odroid:~/EQU_FILTERING_sandra/ViennaCL-1.7.1$
*/home/jbelloch/EQU_FILTERING_sandra/cmake-3.10.0/bin/cmake
ENABLE_OPENCL -DOPENCLROOT=/home/jbelloch/EQU_FILTERING_sandra/opencl
Okay, so CMake must be doing something odd in the build stage.
Can you please send a compilation command when building with CMake? You
may have to set CMAKE_VERBOSE_MAKEFILE to 'On'.
Best regards,
Karli
On 11/19/21 09:12, SANDRA CATALAN PALLARES wrote:
It works!
It works!
jbelloch@odroid:~/EQU_FILTERING_sandra/ViennaCL-1.7.1$ g++
examples/tutorial/blas1.cpp -I. -lOpenCL
-L/home/jbelloch/EQU_FILTERING_sandra/opencl/lib/
jbelloch@odroid:~/EQU_FILTERING_sandra/ViennaCL-1.7.1$ ./a.out
Copying a few scalars...
Manipulating a few scalars...
operator +=