gpgpu - Bunch of cuComplex.h and cmath errors -


i trying compile code in vsc++ using arrayfire porting matrix multiplication gpu. getting following bunch of errors source files. what's happening! pretty sure it's silly mistake please kind enough point out me.

#include <malloc.h> #include <string.h> #include <cstdlib> #include <iostream> #include <string> #include <fstream> #include <time.h> #include <timing.h> #include <math.h> #include <cmath> #include <arrayfire.h>  // ************************************************* #include "dmc.hxx" 

using namespace af;

//mmul(k1,  tmp1,tmp2); //my cpu version matrix multiplication array k1 = matmul (tmp1,tmp2); //trying arrayfire //% k1 = (r1 - dy^2/48*ir2)\(eye(4*k) + i*(3-2*sqrt(3))/12*dy*ir2); (matlab version)          #pragma omp parallel private(ii,jj)         (ii=1;ii<=4*k;ii++)         {             (jj=1;jj<=4*k;jj++)             {                 tmp2.ld(ii,jj,  cmplx(0,(3.f+2.f*sqrt(3.f))/12.f*dy)* k1(ii,jj));             } //end             tmp2.ld(ii,ii,   tmp2(ii,ii)+(1.f)); // %eye         } //end 

************ output ***********

1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(124): error c3861: 'fabsf': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(124): error c3861: 'fabsf': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(150): error c3861: 'fabsf': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(151): error c3861: 'fabsf': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(161): error c3861: 'sqrtf': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(234): error c3861: 'fabs': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(234): error c3861: 'fabs': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(258): error c3861: 'fabs': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(259): error c3861: 'fabs': identifier not found 1>c:\program files\nvidia gpu computing toolkit\cuda\v5.0\include\cucomplex.h(269): error c3861: 'sqrt': identifier not found 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(19): error c2039: 'acosf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(19): error c2873: 'acosf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(19): error c2039: 'asinf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(19): error c2873: 'asinf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2039: 'atanf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2873: 'atanf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2039: 'atan2f' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2873: 'atan2f' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2039: 'ceilf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(20): error c2873: 'ceilf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2039: 'cosf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2873: 'cosf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2039: 'coshf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2873: 'coshf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2039: 'expf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(21): error c2873: 'expf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2039: 'fabsf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2873: 'fabsf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2039: 'floorf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2873: 'floorf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2039: 'fmodf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(22): error c2873: 'fmodf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2039: 'frexpf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2873: 'frexpf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2039: 'ldexpf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2873: 'ldexpf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2039: 'logf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(23): error c2873: 'logf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2039: 'log10f' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2873: 'log10f' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2039: 'modff' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2873: 'modff' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2039: 'powf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(24): error c2873: 'powf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2039: 'sinf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2873: 'sinf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2039: 'sinhf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2873: 'sinhf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2039: 'sqrtf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(25): error c2873: 'sqrtf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(26): error c2039: 'tanf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(26): error c2873: 'tanf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(26): error c2039: 'tanhf' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(26): error c2873: 'tanhf' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(28): error c2039: 'acosl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(28): error c2873: 'acosl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(28): error c2039: 'asinl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(28): error c2873: 'asinl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2039: 'atanl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2873: 'atanl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2039: 'atan2l' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2873: 'atan2l' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2039: 'ceill' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(29): error c2873: 'ceill' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2039: 'cosl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2873: 'cosl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2039: 'coshl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2873: 'coshl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2039: 'expl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(30): error c2873: 'expl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2039: 'fabsl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2873: 'fabsl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2039: 'floorl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2873: 'floorl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2039: 'fmodl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(31): error c2873: 'fmodl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2039: 'frexpl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2873: 'frexpl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2039: 'ldexpl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2873: 'ldexpl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2039: 'logl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(32): error c2873: 'logl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2039: 'log10l' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2873: 'log10l' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2039: 'modfl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2873: 'modfl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2039: 'powl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(33): error c2873: 'powl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2039: 'sinl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2873: 'sinl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2039: 'sinhl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2873: 'sinhl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2039: 'sqrtl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(34): error c2873: 'sqrtl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(35): error c2039: 'tanl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(35): error c2873: 'tanl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(35): error c2039: 'tanhl' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(35): error c2873: 'tanhl' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(39): error c2039: 'acos' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(39): error c2873: 'acos' : symbol cannot used in using-declaration 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(39): error c2039: 'asin' : not member of '`global namespace'' 1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\cmath(39): fatal error c1003: error count exceeds 100; stopping compilation 


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -