AnsweredAssumed Answered

Problem with adding Bolt Sort in a simple opencl code

Question asked by ifrah on Sep 25, 2013
Latest reply on Sep 26, 2013 by ifrah

Hi,

 

In my opencl code, i have added sort function from bolt. I am getting the following linker errors by just adding the sort line 'bolt::cl::sort( abc, abc+elements);' where abc is an array having 'elements' number of elements.

- error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in mycode.obj  clBolt.runtime.vc100.lib(control.obj)

- error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in mycode.obj  clBolt.runtime.vc100.lib(bolt.obj)


I have checked online for solutions c++ - error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj - Stac… but i couldn't figure out that why adding bolt causes the error. if i comment out bolt::cl::sort line then no error shows up.

I downloaded bolt from http://developer.amd.com/tools-and-sdks/heterogeneous-computing/amd-accelerated-parallel-processing-app-sdk/bolt-c-templ… for VS2010


Any idea, whats possibly causing the linking errors?


Outcomes