Hi Alan,

 > My old computer died recently and I am in the process of setting up
> ViennaCL again.
>
> 1.I have  NVIDIA graphics card. Downloaded  NVIDIA GPU Computing Toolkit
>
> 2.I downloaded the Intel OpenCL SDK “OpenCL SDK”
>
> 3.I downloaded Boost 1.61.0
>
> 4.I had Eigen already on my computer
>
> I managed to compile and run a program that worked before without
> enabling OpenCL

Ok, good :-)


> I can compile a program with OPNCL enabled but it crashes at the first
> ViennaCL assignment
>
> i.e.
>
>         viennacl::matrix<double> viennacl_Norm(u,u);

What is the error message? Does it fail to compile the kernels? Which 
GPU do you have?


> I have never used CUDA before but when I compile with CUDA enabled
> (OPENCL disabled) I get a compile error.
>
> 1>d:\CurtinProject\ThirdParty\ViennaCL\viennacl/linalg/cuda/matrix_operations.hpp(327):
> error C2059: syntax error : '<'

This suggests that VIENNACL_WITH_CUDA is defined for a build that 
doesn't use NVCC (i.e. the CUDA compiler). Is this a vanilla build of 
the ViennaCL examples?


> In CMAKE
>
> 1.Boost directories have not been found
> _ Guess I need a global Boost Path

You can just disable Boost if you don't need it:
  - Set ENABLE_UBLAS=Off
  - If you use the developer version, also set
    BUILD_TESTING=Off



> 2.CUDA _/SDK/_ROOT_DIR not found
>
> 3.CUDA_nvuvenc_LIBRARY not found
>
> 4.All remaining CUDA directories are found

Ok, that's good. No need to worry about 2. and 3.


> 5.I set OPENCL directory and library to the Intel SDK

Hmm, better set this to the one in your CUDA SDK (unless you really want 
to use Intel hardware via OpenCL). libOpenCL is located in the lib (or 
lib64) folder, the includes are in include/ in your CUDA SDK project folder.


> 6.Eigen is set to the correct path.

Good!

>
> I am sure I am doing something stupid here but I can’t work it out.

There are some incompatibilities with certain versions of Boost and the 
CUDA compiler. This doesn't seem to be a problem here; I think that just 
setting the OpenCL library and include directory to the CUDA SDK 
variants will suffice to fix your OpenCL build.

Best regards,
Karli


------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
ViennaCL-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viennacl-support

Reply via email to