<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic (CL_DEVICE_NOT_FOUND)  show when run app from console windows in Intel® Moderncode for Parallel Architectures</title>
    <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CL-DEVICE-NOT-FOUND-show-when-run-app-from-console-windows/m-p/1546877#M8211</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the example run properly on release and debug inside of visual studio 2019, but not run when run from windows console. i test with gpu, cpu but not works outside of visual studio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;using namespace sycl;&lt;/P&gt;&lt;P&gt;//************************************&lt;BR /&gt;// Demonstrate vector add both in sequential on CPU and in parallel on device.&lt;BR /&gt;//************************************&lt;BR /&gt;int main(int argc, char* argv[]) {&lt;/P&gt;&lt;P&gt;// The default device selector will select the most performant device.&lt;BR /&gt;// default_selector d_selector;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;try {&lt;BR /&gt;queue q{ cpu_selector{} };&lt;/P&gt;&lt;P&gt;// Print out the device information used for the kernel code.&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "Running on device: "&lt;BR /&gt;&amp;lt;&amp;lt; q.get_device().get_info&amp;lt;info::device::name&amp;gt;() &amp;lt;&amp;lt; "\n";&lt;/P&gt;&lt;P&gt;} catch (exception const &amp;amp;e) {&lt;BR /&gt;&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "An exception is caught for vector add.\n";&lt;BR /&gt;std::cerr &amp;lt;&amp;lt; e.what();&lt;BR /&gt;std::terminate();&lt;BR /&gt;system("pause");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;system("pause");&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 15:33:18 GMT</pubDate>
    <dc:creator>waltermdq</dc:creator>
    <dc:date>2023-11-23T15:33:18Z</dc:date>
    <item>
      <title>(CL_DEVICE_NOT_FOUND)  show when run app from console windows</title>
      <link>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CL-DEVICE-NOT-FOUND-show-when-run-app-from-console-windows/m-p/1546877#M8211</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the example run properly on release and debug inside of visual studio 2019, but not run when run from windows console. i test with gpu, cpu but not works outside of visual studio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include &amp;lt;CL/sycl.hpp&amp;gt;&lt;BR /&gt;#include &amp;lt;iostream&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;using namespace sycl;&lt;/P&gt;&lt;P&gt;//************************************&lt;BR /&gt;// Demonstrate vector add both in sequential on CPU and in parallel on device.&lt;BR /&gt;//************************************&lt;BR /&gt;int main(int argc, char* argv[]) {&lt;/P&gt;&lt;P&gt;// The default device selector will select the most performant device.&lt;BR /&gt;// default_selector d_selector;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;try {&lt;BR /&gt;queue q{ cpu_selector{} };&lt;/P&gt;&lt;P&gt;// Print out the device information used for the kernel code.&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "Running on device: "&lt;BR /&gt;&amp;lt;&amp;lt; q.get_device().get_info&amp;lt;info::device::name&amp;gt;() &amp;lt;&amp;lt; "\n";&lt;/P&gt;&lt;P&gt;} catch (exception const &amp;amp;e) {&lt;BR /&gt;&lt;BR /&gt;std::cout &amp;lt;&amp;lt; "An exception is caught for vector add.\n";&lt;BR /&gt;std::cerr &amp;lt;&amp;lt; e.what();&lt;BR /&gt;std::terminate();&lt;BR /&gt;system("pause");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;system("pause");&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 15:33:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Moderncode-for-Parallel/CL-DEVICE-NOT-FOUND-show-when-run-app-from-console-windows/m-p/1546877#M8211</guid>
      <dc:creator>waltermdq</dc:creator>
      <dc:date>2023-11-23T15:33:18Z</dc:date>
    </item>
  </channel>
</rss>

