Im trying to run viennaCL demo codes on mic.. but got stuck in doing so..
if i want to rin say /examples/bencmarks/vector.cpp on MIC how should i use 'make' command

in one of the mailing list people have suggested to use the following statement in the main part of the code

viennacl::ocl::set_context_device_type (0, CL_DEVICE_TYPE_GPU | CL_DEVICE_TYPE_ACCELERATOR)

how ever when i used that line in main part of vector.cpp and ran 'make' command i got following error
---------------------------------------------------[ 95%] Building CXX object examples/benchmarks/CMakeFiles/vectorbench-cpu.dir/vector.cpp.o
/home1/03023/rajeswar/local/ViennaCL-1.5.2/examples/benchmarks/vector.cpp: In function ‘int main()’:
/home1/03023/rajeswar/local/ViennaCL-1.5.2/examples/benchmarks/vector.cpp:258: error: ‘set_context_device_type’ is not a member of ‘viennacl::ocl’
/home1/03023/rajeswar/local/ViennaCL-1.5.2/examples/benchmarks/vector.cpp:258: error: ‘CL_DEVICE_TYPE_GPU’ was not declared in this scope
/home1/03023/rajeswar/local/ViennaCL-1.5.2/examples/benchmarks/vector.cpp:259: error: ‘CL_DEVICE_TYPE_ACCELERATOR’ was not declared in this scope
make[2]: *** [examples/benchmarks/CMakeFiles/vectorbench-cpu.dir/vector.cpp.o] Error 1
make[1]: *** [examples/benchmarks/CMakeFiles/vectorbench-cpu.dir/all] Error 2
make: *** [all] Error 2

second method suggested was to use custom-context.cpp to modify vector.cpp..   if that is the case how should i modify...

thanks in advance for your help

with regards..

M. Sai Rajeswar
M-tech  Computer Technology
IIT Delhi
----------------------------------Cogito Ergo Sum---------