error in Visual C++ 2010 and Intel Parallel Studio 2011

error in Visual C++ 2010 and Intel Parallel Studio 2011

I am trying to compile the qsort.cilk program using Visual C++ 2010 UI by creating a project and setting up appropriate options.the command line which Visual C++ shows after the flags are set is:/I"C:\\Program Files (x86)\\Intel\\Cilk\\include" /Zi /nologo /W3 /Od /Qparallel /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" /EHsc /RTC1 /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"x64\\Debug\\cilktest.pch" /Fa"x64\\Debug\\" /Fo"x64\\Debug\\" /Fd"x64\\Debug\\vc100.pdb"On compile step I get following errors:1>------ Build started: Project: cilktest, Configuration: Debug x64 ------1>Build started 11/8/2010 1:34:55 PM.1>InitializeBuildStatus:1> Touching "x64\\Debug\\cilktest.unsuccessfulbuild".1>MessageBuildingWithCompiler:1> Building with Intel Parallel Composer 20111>ClCompile:1> ***** ClCompile (X64 - Intel C++)1> qsort.cilk1>qsort.cilk(45): error : identifier "cilk_spawn" is undefined1> cilk_spawn sample_qsort(begin, middle);1> ^1> 1>qsort.cilk(45): error : expected a ")"1> cilk_spawn sample_qsort(begin, middle);1> ^1> 1>qsort.cilk(47): error : identifier "cilk_sync" is undefined1> cilk_sync;1> ^1> 1> compilation aborted for qsort.cilk (code 2)1>1>Build FAILED.1>1>Time Elapsed 00:00:09.08========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========1>------ Build started: Project: cilktest, Configuration: Debug x64 ------1>Build started 11/8/2010 1:34:55 PM.1>InitializeBuildStatus:1> Touching "x64\\Debug\\cilktest.unsuccessfulbuild".1>MessageBuildingWithCompiler:1> Building with Intel Parallel Composer 20111>ClCompile:1> ***** ClCompile (X64 - Intel C++)1> qsort.cilk1>qsort.cilk(45): error : identifier "cilk_spawn" is undefined1> cilk_spawn sample_qsort(begin, middle);1> ^1> 1>qsort.cilk(45): error : expected a ")"1> cilk_spawn sample_qsort(begin, middle);1> ^1> 1>qsort.cilk(47): error : identifier "cilk_sync" is undefined1> cilk_sync;1> ^1> 1> compilation aborted for qsort.cilk (code 2)1>1>Build FAILED.1>1>Time Elapsed 00:00:09.08========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========I am getting similar error with other cilk example programs.Appreciate if someone can help me set up right options in Visual C++ 2010.thanksraja

2 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

qsort.cilk is one of the demo programs shipped with Cilk++. You're trying to use the Intel Parallel Composer 2011 compiler. The Cilk language changed in a number of ways between the two implementation.

A paper on converting an applicaiton from Cilk++ to Intel Cilk Plus is available at http://software.intel.com/en-us/articles/converting-a-cilk-arts-cilk-application-to-intel-cilk-plus/. Or you can use the copy of the qsort application shipped with Parallel Studio.

- Barry

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi