2 Replies Latest reply on Dec 3, 2014 7:29 PM by y06480509

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

    y06480509


      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

        • Re: error AMD APP SDK\2.9\samples\openclSimpleDX9.exe
          dipak

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

           

          Regards,

            • Re: error AMD APP SDK\2.9\samples\openclSimpleDX9.exe
              y06480509

              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?