cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

y06480509
Journeyman III

error AMD APP SDK\2.9\samples\openclSimpleDX9.exe


I run C:\Users\Administrator\AMD APP SDK\2.9\samples\opencl\bin\x86\SimpleDX9.exe,but is error!

the error code is :

        status = pfn_clGetDeviceIDsFromDX9MediaAdapterKHR(platform, numAdapters,&type,

                 (void *)m_pD3DDevice9,

                 CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR, 1,&device, &num);

0xC0000005: Access violation

win7 64 bit

amd R7 240

0 Likes
2 Replies
dipak
Big Boss

This sample had a bug in APP SDK 2.9. Please download the latest APP SDK 2.9-1 and test this sample.

Regards,

0 Likes

the code :AMD APP SDK\2.9\samples\openclSimpleDX9.exe error's here:

  status = pfn_clGetDeviceIDsFromDX9MediaAdapterKHR(platform, numAdapters,&type,

                 (void *)m_pD3DDevice9,

                 CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR, 1,devices, &num);

change the code like this is OK!!

        status = pfn_clGetDeviceIDsFromDX9MediaAdapterKHR(platform, numAdapters,&type,

                 &m_pD3DDevice9,

                 CL_PREFERRED_DEVICES_FOR_DX9_MEDIA_ADAPTER_KHR, 1,&device, &num);

the latest APP SDK 2.9-1 openclSimpleDX9.exe change is to much!

and another question why i use interop with d3d9 to rendering image only 60 fps is so slow. the wite_imagef is cost much time; or my code is so slow?

0 Likes