Hi,

 > First I must thank you for your fantastic math library viennaCL! It is
> useful in my custom CFD code development. Now when I tried the latest
> example wrap_cuda.cu, I faced some strange errors , my platform is
> Windows 10 64 bit with Intel core i7 2700
> Visual studio 2013
> Cuda 7.5
> Nvidia Gtx 670
>
> If I create a solution and add the example cu file without modification,
> then compilation is succesful, but has runtime errors show viennaCL cuda
> not available exception and the interrupt stops at the first wrap
> statement viennaCL::vector line.

Is this with the standard ViennaCL CMake build, or this is your own 
build? You have to make sure that VIENNACL_WITH_CUDA is defined at the 
very top of your .cu file, otherwise CUDA doesn't get picked up.


> However, the native cuda code runs well
> and shows the result in the dos window.

What do you mean by 'native CUDA code'? Code from the CUDA SDK?



> When I add #define
> VIENNACL_WITH_CUDA at the first line in the cu file, then I face some
> compilation errors said vector_operation.hpp line 458 has syntactic
> errors like "lacking ; "and "> ".

This suggests that you are not compiling through NVCC, but instead use 
the standard Visual Studio compiler. You *must* compile .cu files with 
NVCC, otherwise the CUDA syntax is not recognized.


> I thought the cu file should be well and these peoblem might be induced
> by other factors.Is it possible a cuda compatible problem?

It looks to me that you are not compiling with NVCC.

Best regards,
Karli


------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
ViennaCL-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/viennacl-support

Reply via email to