<?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 Thanks for your tips, in OpenCL* for CPU</title>
    <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158357#M6248</link>
    <description>&lt;P&gt;Thanks for your tips, unfortunately it doesn't work for me. I still can only see&amp;nbsp;device&amp;nbsp;by 'sudo clinfo', this is my group information.&lt;/P&gt;&lt;P&gt;$ groups xiaoquan.li&lt;BR /&gt;xiaoquan.li : xiaoquan.li sudo video&lt;/P&gt;&lt;P&gt;BTW, the driver works fine by&amp;nbsp;'sudo ...', I've checked gpu usage by intel_gpu_top, it does work.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 01:53:16 GMT</pubDate>
    <dc:creator>li__xiaoquan</dc:creator>
    <dc:date>2019-06-04T01:53:16Z</dc:date>
    <item>
      <title>CL Device is only available when 'sudo' is used</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158354#M6245</link>
      <description />
      <pubDate>Mon, 03 Jun 2019 11:16:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158354#M6245</guid>
      <dc:creator>li__xiaoquan</dc:creator>
      <dc:date>2019-06-03T11:16:11Z</dc:date>
    </item>
    <item>
      <title>Do you have access to files</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158355#M6246</link>
      <description>&lt;P&gt;Do you have access to files in /dev/dri directory?&lt;/P&gt;&lt;P&gt;Centos, Ubuntu&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;$ ls -l /dev/dri/
total 0
crw-rw---- 1 root video 226,   0 May 10 17:14 card0
crw-rw---- 1 root video 226, 128 May 10 17:14 renderD128
&lt;/PRE&gt;

&lt;P&gt;Fedora&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;# ls -l /dev/dri/
total 0
drwxr-xr-x  2 root root         80 Apr 25 13:24 by-path
crw-rw----+ 1 root video  226,   0 Apr 30 15:42 card0
crw-rw-rw-  1 root render 226, 128 Apr 30 15:42 renderD128&lt;/PRE&gt;

&lt;P&gt;If not, you&amp;nbsp;need to add your user to video or render groups.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 13:54:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158355#M6246</guid>
      <dc:creator>JACEK_D_Intel</dc:creator>
      <dc:date>2019-06-03T13:54:49Z</dc:date>
    </item>
    <item>
      <title>Hi XiaoquanLi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158356#M6247</link>
      <description>&lt;P&gt;Hi XiaoquanLi,&lt;/P&gt;&lt;P&gt;Thanks for the continuing interest.&lt;/P&gt;&lt;P&gt;Typically the issue you observe is correlated with lack of membership to the 'video' group required for hardware access. This step and other prerequisites are shown in the &lt;A href="https://software.intel.com/en-us/articles/sdk-for-opencl-2019-gsg-linux-os"&gt;linux guide here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The guide should walk through deploying the runtimes and developer tools to build and execute an OpenCL program on Intel platforms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-MichaelC&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 21:05:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158356#M6247</guid>
      <dc:creator>Michael_C_Intel1</dc:creator>
      <dc:date>2019-06-03T21:05:34Z</dc:date>
    </item>
    <item>
      <title>Thanks for your tips,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158357#M6248</link>
      <description>&lt;P&gt;Thanks for your tips, unfortunately it doesn't work for me. I still can only see&amp;nbsp;device&amp;nbsp;by 'sudo clinfo', this is my group information.&lt;/P&gt;&lt;P&gt;$ groups xiaoquan.li&lt;BR /&gt;xiaoquan.li : xiaoquan.li sudo video&lt;/P&gt;&lt;P&gt;BTW, the driver works fine by&amp;nbsp;'sudo ...', I've checked gpu usage by intel_gpu_top, it does work.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 01:53:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158357#M6248</guid>
      <dc:creator>li__xiaoquan</dc:creator>
      <dc:date>2019-06-04T01:53:16Z</dc:date>
    </item>
    <item>
      <title>Hi XiaoquanLi,</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158358#M6249</link>
      <description>&lt;P&gt;Hi XiaoquanLi,&lt;/P&gt;&lt;P&gt;Can you display file attribute user and group&amp;nbsp;permissions for the files associated with the runtime? It could be useful to review files&amp;nbsp;that come from the &lt;A href="https://github.com/intel/compute-runtime/releases"&gt;runtime assets &lt;/A&gt;as they sit on disk after install.&lt;/P&gt;&lt;P&gt;Here's how to walk through it on an Ubuntu system...&lt;/P&gt;&lt;P&gt;I grabbed the file permissions from build assets generated most recently. Here is the list of all files from all .deb:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;~/neo_20190530$ FILE_LIST=$(for i in `ls *deb`; do dpkg-deb -c ${i}; done)

~/neo_20190530$ &amp;nbsp;echo "${FILE_LIST}" | grep -v '/$'
-rw-r--r-- jenkins/1001 375312 2019-05-30 07:51 .
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-03-26 15:14 ./usr/local/lib/libigdgmm.so.9 -&amp;gt; libigdgmm.so.9.0.0.532
-rw-r--r-- jenkins/1001 1971744 2019-05-30 07:51 ./usr/local/lib/libiga64.so.1.0.6
-rw-r--r-- jenkins/1001 38587864 2019-05-30 07:51 ./usr/local/lib/libigc.so.1.0.6
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libiga64.so -&amp;gt; libiga64.so.1
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libiga64.so.1 -&amp;gt; libiga64.so.1.0.6
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libigc.so -&amp;gt; libigc.so.1
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libigc.so.1 -&amp;gt; libigc.so.1.0.6
-rw-r--r-- jenkins/1001 59496880 2019-05-21 18:23 ./usr/local/lib/clang
-rw-r--r-- jenkins/1001 &amp;nbsp;1239888 2019-05-30 07:51 ./usr/local/lib/libigdfcl.so.1.0.6
-rw-r--r-- jenkins/1001 56793368 2019-05-30 07:51 ./usr/local/lib/libopencl-clang.so
-rw-r--r-- jenkins/1001 56793368 2019-05-30 07:51 ./usr/local/lib/libopencl-clang.so.7
-rw-r--r-- jenkins/1001 &amp;nbsp; 835955 2019-04-16 15:12 ./usr/local/lib/opencl-c.h
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libigdfcl.so -&amp;gt; libigdfcl.so.1
lrwxrwxrwx jenkins/1001 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 2019-05-21 18:28 ./usr/local/lib/libigdfcl.so.1 -&amp;gt; libigdfcl.so.1.0.6
-rwxr-xr-x jenkins/1001 284424 2019-05-24 10:34 ./usr/local/bin/ocloc
-rw-r--r-- jenkins/1001 &amp;nbsp; &amp;nbsp; 41 2019-05-24 10:34 ./etc/OpenCL/vendors/intel.icd
-rw-r--r-- jenkins/1001 3139984 2019-05-30 07:51 ./usr/local/lib/intel-opencl/libigdrcl.so&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is getting the file info:&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;~/neo_20190530$ echo "${FILE_LIST}" | grep -v '/$' | awk '{print $6}' | cut -f2- -d'.' | xargs ls -tal
-rw-r--r-- 1 [username] [groupname] &amp;nbsp;3139984 May 30 07:51 /usr/local/lib/intel-opencl/libigdrcl.so
-rw-r--r-- 1 [username] [groupname] &amp;nbsp;1239888 May 30 07:51 /usr/local/lib/libigdfcl.so.1.0.6
-rw-r--r-- 1 [username] [groupname] 56793368 May 30 07:51 /usr/local/lib/libopencl-clang.so
-rw-r--r-- 1 [username] [groupname] 56793368 May 30 07:51 /usr/local/lib/libopencl-clang.so.7
-rw-r--r-- 1 [username] [groupname] &amp;nbsp;1971744 May 30 07:51 /usr/local/lib/libiga64.so.1.0.6
-rw-r--r-- 1 [username] [groupname] 38587864 May 30 07:51 /usr/local/lib/libigc.so.1.0.6
-rw-r--r-- 1 [username] [groupname] &amp;nbsp; 375312 May 30 07:51 /usr/local/lib/libigdgmm.so.9.0.0.532
-rw-r--r-- 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 41 May 24 10:34 /etc/OpenCL/vendors/intel.icd
-rwxr-xr-x 1 [username] [groupname] &amp;nbsp; 284424 May 24 10:34 /usr/local/bin/ocloc
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 13 May 21 18:28 /usr/local/lib/libiga64.so -&amp;gt; libiga64.so.1
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 17 May 21 18:28 /usr/local/lib/libiga64.so.1 -&amp;gt; libiga64.so.1.0.6
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 11 May 21 18:28 /usr/local/lib/libigc.so -&amp;gt; libigc.so.1
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 15 May 21 18:28 /usr/local/lib/libigc.so.1 -&amp;gt; libigc.so.1.0.6
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 14 May 21 18:28 /usr/local/lib/libigdfcl.so -&amp;gt; libigdfcl.so.1
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 18 May 21 18:28 /usr/local/lib/libigdfcl.so.1 -&amp;gt; libigdfcl.so.1.0.6
-rw-r--r-- 1 [username] [groupname] 59496880 May 21 18:23 /usr/local/lib/clang
-rw-r--r-- 1 [username] [groupname] &amp;nbsp; 835955 Apr 16 15:12 /usr/local/lib/opencl-c.h
lrwxrwxrwx 1 [username] [groupname] &amp;nbsp; &amp;nbsp; &amp;nbsp; 22 Mar 26 15:14 /usr/local/lib/libigdgmm.so.9 -&amp;gt; libigdgmm.so.9.0.0.532&lt;/PRE&gt;

&lt;P&gt;Can you post the feedback JACEK D. recommended for review?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;-MichaelC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 19:09:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158358#M6249</guid>
      <dc:creator>Michael_C_Intel1</dc:creator>
      <dc:date>2019-06-06T19:09:09Z</dc:date>
    </item>
    <item>
      <title>Thanks for your help.</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158359#M6250</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;This is information for deb files:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;xiaoquan.li@ops-Alienware-17-R4:~/
$ &amp;nbsp;FILE_LIST=$(for i in `ls intel-opencl_18.38.11535_amd64.deb`; do dpkg-deb -c ${i}; done)
xiaoquan.li@ops-Alienware-17-R4:~/
$ &amp;nbsp;echo "${FILE_LIST}" | grep -v '/$'
-rw-r--r-- ubit/ubit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28 2018-09-21 19:32 ./etc/OpenCL/vendors/intel.icd
-rw-r--r-- ubit/ubit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15 2018-09-21 19:32 ./etc/ld.so.conf.d/libintelopencl.conf
-rw-r--r-- ubit/ubit &amp;nbsp;52683976 2018-09-21 19:35 ./usr/local/lib/libopencl_clang.so
-rw-r--r-- ubit/ubit &amp;nbsp;35232144 2018-09-21 19:35 ./usr/local/lib/libigc.so
-rw-r--r-- ubit/ubit &amp;nbsp; 1059184 2018-09-21 19:35 ./usr/local/lib/libigdfcl.so
-rw-r--r-- ubit/ubit &amp;nbsp; 1902392 2018-09-21 19:35 ./usr/local/lib/libiga64.so
-rw-r--r-- ubit/ubit &amp;nbsp; 2969720 2018-09-21 19:35 ./usr/local/lib/libigdrcl.so
xiaoquan.li@ops-Alienware-17-R4:~/
$ echo "${FILE_LIST}" | grep -v '/$' | awk '{print $6}' | cut -f2- -d'.' | xargs ls -tal
-rw-r--r-- 1 1020 1024 &amp;nbsp;1902392 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /usr/local/lib/libiga64.so
-rw-r--r-- 1 1020 1024 35232144 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /usr/local/lib/libigc.so
-rw-r--r-- 1 1020 1024 &amp;nbsp;1059184 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /usr/local/lib/libigdfcl.so
-rw-r--r-- 1 1020 1024 &amp;nbsp;2969720 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /usr/local/lib/libigdrcl.so
-rw-r--r-- 1 1020 1024 52683976 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /usr/local/lib/libopencl_clang.so
-rw-r--r-- 1 1020 1024 &amp;nbsp; &amp;nbsp; &amp;nbsp; 15 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /etc/ld.so.conf.d/libintelopencl.conf
-rw-r--r-- 1 1020 1024 &amp;nbsp; &amp;nbsp; &amp;nbsp; 28 9\u6708 &amp;nbsp;21 &amp;nbsp;2018 /etc/OpenCL/vendors/intel.icd
&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is information for device files (I have another GPU installed):&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;$ ls -lh /dev/dri/
total 0
crw-rw----+ 1 root video 226,   0 6\u6708   6 12:05 card0
crw-rw----+ 1 root video 226,   1 6\u6708   6 12:05 card1
crw-rw----+ 1 root video 226, 128 6\u6708   6 12:05 renderD128
crw-rw----+ 1 root video 226, 129 6\u6708   6 12:05 renderD129
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 04:27:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158359#M6250</guid>
      <dc:creator>li__xiaoquan</dc:creator>
      <dc:date>2019-06-10T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Can you provide file log.txt</title>
      <link>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158360#M6251</link>
      <description>&lt;P&gt;Can you provide file log.txt created with below command:&lt;/P&gt;
&lt;PRE class="brush:bash; class-name:dark;"&gt;strace -f -s 255 -o log.txt clinfo
&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/OpenCL-for-CPU/CL-Device-is-only-available-when-sudo-is-used/m-p/1158360#M6251</guid>
      <dc:creator>JACEK_D_Intel</dc:creator>
      <dc:date>2019-06-11T11:48:11Z</dc:date>
    </item>
  </channel>
</rss>

