Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-26 Thread Seva Gluschenko
Hi everyone,


My problem is solved, finally, and I think that would be reasonable to share 
the solution here, even though it has no connection to Beignet, just in case 
somebody hits the same problem next time. The solution is simple:

# modprobe i915_bpo modeset=1

The reason this problem ever appeared is that our IT infrastructure provider 
issued "nomodeset" as default option in the /etc/default/grub file because of 
numerous problems with older i915 modules.

Thank you very much again for useful hints and patience.


Best,

Seva


26.09.2016, 09:07, "Yang, Rong R" <rong.r.y...@intel.com>:
>> but it seems like the DRI is only available together with X.
>
> As my understanding, /dev/dri is create by drm's kernel space driver, and it 
> is not only available together with X.
> Actually X is one of /dev/dri's clients, all graphics stack such as wayland 
> and vaapi use it.
>
>> [ 0.879802] [drm] Initialized drm 1.1.0
>
> drm.ko is loaded, but drm module is not enough, also need i915.ko.
>
>>  20060810
>>  -Original Message-
>>  From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
>>  Weng, Chuanbo
>>  Sent: Monday, September 26, 2016 12:49
>>  To: Seva Gluschenko <g...@webkontrol.ru>; beignet@lists.freedesktop.org
>>  Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
>>  regarding X11 and kernel patches
>>
>>  How did you work out a non-X ubuntu? Installed an ubuntu server edition?
>>  /dev/dri is supported by linux kernel, try this command to see whether there
>>  is drm and i915 module:
>>  lsmod | grep i915
>>  Maybe you can update your linux kernel to latest version and try again.
>>
>>  Thanks,
>>  Chuanbo Weng
>>
>>  -Original Message-
>>  From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
>>  Seva Gluschenko
>>  Sent: Saturday, September 24, 2016 1:02 AM
>>  To: beignet@lists.freedesktop.org
>>  Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
>>  regarding X11 and kernel patches
>>
>>  Hi Weng,
>>
>>  I might be missing something, but it seems like the DRI is only available
>>  together with X. That's why I'm specifically interested if you know how to
>>  make /dev/dri appear in non-X environment.
>>
>>  On the other hand, I made all my exercises as root, and I've just figured 
>> out,
>>  though, that I don't have /dev/drm either, even though kernel reports it was
>>  initialized in my system:
>>
>>  Sep 23 10:15:24 srv1204 kernel: [ 0.879802] [drm] Initialized drm 1.1.0
>>  20060810
>>
>>  That's what I'm going to dig next. Thank you very much again for your time
>>  and patience.
>>
>>  Best,
>>
>>  Seva
>>
>>  23.09.2016, 12:33, "Weng, Chuanbo" <chuanbo.w...@intel.com>:
>>  > Hi Seva,
>>  > What Rong means is that Beignet will try to open drm device
>>  > exposed in /dev/dri/ (Actually, In non-X environment, Beignet will try
>>  > to open render node such as /dev/dri/renderD128, if failed it will then 
>> try
>>  to open prime primary node such as /dev/dri/card0).
>>  > Beignet can run on DRM mode, but you should better be a root user.
>>  > You can try to run utest as suggested by Rong, and report the 
>> message
>>  to us (if running utest failed).
>>  > I strongly suggest you take a look at README.md, which
>>  > includes many basic info of Beignet usage. : )
>>  >
>>  > Thanks,
>>  > Chuanbo Weng
>>  >
>>  > -Original Message-
>>  > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf
>>  > Of Seva Gluschenko
>>  > Sent: Friday, September 23, 2016 4:57 PM
>>  > To: beignet@lists.freedesktop.org
>>  > Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
>>  > regarding X11 and kernel patches
>>  >
>>  > Thank you very much for the hint. So, in fact, even though I succeeded in
>>  compiling Beignet without X, I still need X to run it because DRI is only
>>  available with X? No chance to use DRM or DirectFB?
>>  >
>>  > 23.09.2016, 06:12, "Yang, Rong R" <rong.r.y...@intel.com>:
>>  >>  There is only beignet-opencl-icd's output, can't find the error message
>>  from beignet, can you try beignet's utest directly?
>>  >>  To run utest, you need "make utest", then run ". ./utests/setenv.sh" and
>>  at last " ./utests/utest_run".
>>  >>
>>  >>  It seems open device failed, can you also list the device under 
>> /dev/dri?
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-26 Thread Yang, Rong R


> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
> Rebecca N. Palmer
> Sent: Saturday, September 24, 2016 5:54
> To: beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
> regarding X11 and kernel patches
> 
> The drm.rnodes=1 kernel parameter mentioned in beignet's documentation
> no longer exists (render nodes are on by default since
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers
> /gpu/drm/drm_stub.c?id=6d6dfcfb883818b40b58bac61cc72cab428a7a03),
> but it wasn't supposed to be needed if beignet was run as root.
Thanks for pointing out it, I will update README.

> 
> > # strings /usr/local/lib/beignet/libcl.so | grep -i x11 x11_display
> This may not be an actual problem: beignet's internal intel_driver structure
> always has an x11_display field (src/intel/intel_driver.h:89), which is set to
> NULL if there is no such display.  (Though if so, odd that my test didn't have
> that string...)
> 
> > There is only beignet-opencl-icd's output, can't find the error
> > message from beignet,
> That's because that "beignet-opencl-icd: no supported GPU found, this is
> probably the wrong opencl-icd package for this hardware" message *is* the
> driver's failure message in Debian beignet:
> https://sources.debian.net/src/beignet/1.2.0-1/debian/patches/reduce-
> notfound-output.patch/
Get it, thanks for your explanation.

> 
> I made this change because the Debian packaging system doesn't really have
> a concept of "this package only works on this hardware", and it is hence 
> likely
> that Debian beignet will get installed on hardware that actually needs some
> other ICD.
> 
> (It uses the name beignet-opencl-icd because that's the package name, but
> comes from the usual place in the code, i.e. is _not_ specific to the ICD
> interface.)
> 
> You can revert this change by removing the reduce-notfound-output.patch
> line from debian/patches/series and rebuilding the package, but this
> probably won't actually make it work.
> 
> ___
> Beignet mailing list
> Beignet@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-26 Thread Yang, Rong R
>but it seems like the DRI is only available together with X.
As my understanding, /dev/dri is create by drm's kernel space driver, and it is 
not only available together with X.
Actually X is one of /dev/dri's clients, all graphics stack such as wayland and 
vaapi use it.


>[0.879802] [drm] Initialized drm 1.1.0
drm.ko is loaded, but drm module is not enough, also need i915.ko.

> 20060810
> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
> Weng, Chuanbo
> Sent: Monday, September 26, 2016 12:49
> To: Seva Gluschenko <g...@webkontrol.ru>; beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
> regarding X11 and kernel patches
> 
> 
> How did you work out a non-X ubuntu? Installed an ubuntu server edition?
> /dev/dri is supported by linux kernel, try this command to see whether there
> is drm and i915 module:
>   lsmod | grep i915
> Maybe you can update your linux kernel to latest version and try again.
> 
> Thanks,
> Chuanbo Weng
> 
> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
> Seva Gluschenko
> Sent: Saturday, September 24, 2016 1:02 AM
> To: beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
> regarding X11 and kernel patches
> 
> Hi Weng,
> 
> 
> I might be missing something, but it seems like the DRI is only available
> together with X. That's why I'm specifically interested if you know how to
> make /dev/dri appear in non-X environment.
> 
> On the other hand, I made all my exercises as root, and I've just figured out,
> though, that I don't have /dev/drm either, even though kernel reports it was
> initialized in my system:
> 
> Sep 23 10:15:24 srv1204 kernel: [0.879802] [drm] Initialized drm 1.1.0
> 20060810
> 
> That's what I'm going to dig next. Thank you very much again for your time
> and patience.
> 
> 
> Best,
> 
> Seva
> 
> 
> 23.09.2016, 12:33, "Weng, Chuanbo" <chuanbo.w...@intel.com>:
> > Hi Seva,
> > What Rong means is that Beignet will try to open drm device
> > exposed in /dev/dri/ (Actually, In non-X environment, Beignet will try
> > to open render node such as /dev/dri/renderD128, if failed it will then try
> to open prime primary node such as /dev/dri/card0).
> > Beignet can run on DRM mode, but you should better be a root user.
> > You can try to run utest as suggested by Rong, and report the 
> > message
> to us (if running utest failed).
> > I strongly suggest you take a look at README.md, which
> > includes many basic info of Beignet usage. : )
> >
> > Thanks,
> > Chuanbo Weng
> >
> > -Original Message-----
> > From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf
> > Of Seva Gluschenko
> > Sent: Friday, September 23, 2016 4:57 PM
> > To: beignet@lists.freedesktop.org
> > Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
> > regarding X11 and kernel patches
> >
> > Thank you very much for the hint. So, in fact, even though I succeeded in
> compiling Beignet without X, I still need X to run it because DRI is only
> available with X? No chance to use DRM or DirectFB?
> >
> > 23.09.2016, 06:12, "Yang, Rong R" <rong.r.y...@intel.com>:
> >>  There is only beignet-opencl-icd's output, can't find the error message
> from beignet, can you try beignet's utest directly?
> >>  To run utest, you need "make utest", then run ". ./utests/setenv.sh" and
> at last " ./utests/utest_run".
> >>
> >>  It seems open device failed, can you also list the device under /dev/dri?
> ___
> Beignet mailing list
> Beignet@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
> ___
> Beignet mailing list
> Beignet@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-25 Thread Weng, Chuanbo

How did you work out a non-X ubuntu? Installed an ubuntu server edition?
/dev/dri is supported by linux kernel, try this command to see whether there is 
drm and i915 module:
lsmod | grep i915
Maybe you can update your linux kernel to latest version and try again.

Thanks,
Chuanbo Weng

-Original Message-
From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Seva 
Gluschenko
Sent: Saturday, September 24, 2016 1:02 AM
To: beignet@lists.freedesktop.org
Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 
and kernel patches

Hi Weng,


I might be missing something, but it seems like the DRI is only available 
together with X. That's why I'm specifically interested if you know how to make 
/dev/dri appear in non-X environment.

On the other hand, I made all my exercises as root, and I've just figured out, 
though, that I don't have /dev/drm either, even though kernel reports it was 
initialized in my system:

Sep 23 10:15:24 srv1204 kernel: [0.879802] [drm] Initialized drm 1.1.0 
20060810

That's what I'm going to dig next. Thank you very much again for your time and 
patience.


Best,

Seva


23.09.2016, 12:33, "Weng, Chuanbo" <chuanbo.w...@intel.com>:
> Hi Seva,
> What Rong means is that Beignet will try to open drm device 
> exposed in /dev/dri/ (Actually, In non-X environment, Beignet will try 
> to open render node such as /dev/dri/renderD128, if failed it will then try 
> to open prime primary node such as /dev/dri/card0).
> Beignet can run on DRM mode, but you should better be a root user.
> You can try to run utest as suggested by Rong, and report the message 
> to us (if running utest failed).
> I strongly suggest you take a look at README.md, which 
> includes many basic info of Beignet usage. : )
>
> Thanks,
> Chuanbo Weng
>
> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf 
> Of Seva Gluschenko
> Sent: Friday, September 23, 2016 4:57 PM
> To: beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 
> regarding X11 and kernel patches
>
> Thank you very much for the hint. So, in fact, even though I succeeded in 
> compiling Beignet without X, I still need X to run it because DRI is only 
> available with X? No chance to use DRM or DirectFB?
>
> 23.09.2016, 06:12, "Yang, Rong R" <rong.r.y...@intel.com>:
>>  There is only beignet-opencl-icd's output, can't find the error message 
>> from beignet, can you try beignet's utest directly?
>>  To run utest, you need "make utest", then run ". ./utests/setenv.sh" and at 
>> last " ./utests/utest_run".
>>
>>  It seems open device failed, can you also list the device under /dev/dri?
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-23 Thread Seva Gluschenko
Hi Weng,


I might be missing something, but it seems like the DRI is only available 
together with X. That's why I'm specifically interested if you know how to make 
/dev/dri appear in non-X environment.

On the other hand, I made all my exercises as root, and I've just figured out, 
though, that I don't have /dev/drm either, even though kernel reports it was 
initialized in my system:

Sep 23 10:15:24 srv1204 kernel: [0.879802] [drm] Initialized drm 1.1.0 
20060810

That's what I'm going to dig next. Thank you very much again for your time and 
patience.


Best,

Seva


23.09.2016, 12:33, "Weng, Chuanbo" <chuanbo.w...@intel.com>:
> Hi Seva,
> What Rong means is that Beignet will try to open drm device exposed 
> in /dev/dri/ (Actually, In non-X environment,
> Beignet will try to open render node such as /dev/dri/renderD128, if failed 
> it will then try to open prime primary node such
> as /dev/dri/card0).
> Beignet can run on DRM mode, but you should better be a root user.
> You can try to run utest as suggested by Rong, and report the message 
> to us (if running utest failed).
> I strongly suggest you take a look at README.md, which includes many 
> basic info of Beignet usage. : )
>
> Thanks,
> Chuanbo Weng
>
> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of 
> Seva Gluschenko
> Sent: Friday, September 23, 2016 4:57 PM
> To: beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding 
> X11 and kernel patches
>
> Thank you very much for the hint. So, in fact, even though I succeeded in 
> compiling Beignet without X, I still need X to run it because DRI is only 
> available with X? No chance to use DRM or DirectFB?
>
> 23.09.2016, 06:12, "Yang, Rong R" <rong.r.y...@intel.com>:
>>  There is only beignet-opencl-icd's output, can't find the error message 
>> from beignet, can you try beignet's utest directly?
>>  To run utest, you need "make utest", then run ". ./utests/setenv.sh" and at 
>> last " ./utests/utest_run".
>>
>>  It seems open device failed, can you also list the device under /dev/dri?
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-23 Thread Weng, Chuanbo
Hi Seva,
What Rong means is that Beignet will try to open drm device exposed in 
/dev/dri/ (Actually, In non-X environment, 
Beignet will try to open render node such as /dev/dri/renderD128, if failed it 
will then try to open prime primary node such 
as /dev/dri/card0).
Beignet can run on DRM mode, but you should better be a root user.
You can try to run utest as suggested by Rong, and report the message 
to us  (if running utest failed).
I strongly suggest you take a look at README.md, which includes many 
basic info of Beignet usage. : )

Thanks,
Chuanbo Weng


-Original Message-
From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of Seva 
Gluschenko
Sent: Friday, September 23, 2016 4:57 PM
To: beignet@lists.freedesktop.org
Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 
and kernel patches

Thank you very much for the hint. So, in fact, even though I succeeded in 
compiling Beignet without X, I still need X to run it because DRI is only 
available with X? No chance to use DRM or DirectFB?

23.09.2016, 06:12, "Yang, Rong R" <rong.r.y...@intel.com>:
> There is only beignet-opencl-icd's output, can't find the error message from 
> beignet, can you try beignet's utest directly?
> To run utest, you need "make utest", then run ". ./utests/setenv.sh" and at 
> last " ./utests/utest_run".
>
> It seems open device failed, can you also list the device under /dev/dri?

-- 
Best Regards,

Seva Gluschenko
CTO @ http://webkontrol.ru/
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-23 Thread Seva Gluschenko
Thank you very much for the hint. So, in fact, even though I succeeded in 
compiling Beignet without X, I still need X to run it because DRI is only 
available with X? No chance to use DRM or DirectFB?

23.09.2016, 06:12, "Yang, Rong R" :
> There is only beignet-opencl-icd's output, can't find the error message from 
> beignet, can you try beignet's utest directly?
> To run utest, you need "make utest", then run ". ./utests/setenv.sh" and at 
> last " ./utests/utest_run".
>
> It seems open device failed, can you also list the device under /dev/dri?

-- 
Best Regards,

Seva Gluschenko
CTO @ http://webkontrol.ru/
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-22 Thread Yang, Rong R
There is only beignet-opencl-icd's output, can't find the error message from 
beignet, can you try beignet's utest directly?
To run utest, you need "make utest", then run ". ./utests/setenv.sh" and at 
last " ./utests/utest_run".

It seems open device failed, can you also list the device under /dev/dri?

> -Original Message-
> From: Beignet [mailto:beignet-boun...@lists.freedesktop.org] On Behalf Of
> Seva Gluschenko
> Sent: Thursday, September 22, 2016 16:36
> To: beignet@lists.freedesktop.org
> Subject: Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0
> regarding X11 and kernel patches
>   
> Hello Rebecca,
> 
> Please accept my apologies for being not very informative. I'm running
> Ubuntu 16.04.1LTS x86_64 on Intel Core i7-6700, and I had the patched Linux
> kernel 4.4.21-intel.r16.5 and Intel's
> opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25 installed in parallel with
> Beignet. After erasing all that stuff and switching back to the standard 
> kernel
> (4.4.0-38-generic, in fact 4.4.17 with patches, according to ChangeLog), with
> Beignet as the only ICD provider, clinfo no longer fails without X.
> Unfortunately, it does not find any GPU either:
> 
> # clinfo
> Number of platforms   1
>   Platform Name   Intel Gen OCL Driver
>   Platform Vendor Intel
>   Platform VersionOpenCL 1.2 beignet 1.2
>   Platform ProfileFULL_PROFILE
>   Platform Extensions 
> cl_khr_global_int32_base_atomics
> cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics
> cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store
> cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_khr_spir
> cl_khr_icd cl_intel_accelerator cl_intel_motion_estimation
> cl_intel_subgroups
>   Platform Extensions function suffix Intel
> beignet-opencl-icd: no supported GPU found, this is probably the wrong
> opencl-icd package for this hardware (If you have multiple ICDs installed and
> OpenCL works, you can ignore this message)
> 
>   Platform Name   Intel Gen OCL Driver
> Number of devices 0
> 
> NULL platform behavior
>   clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
> beignet-opencl-icd: no supported GPU found, this is probably the wrong
> opencl-icd package for this hardware (If you have multiple ICDs installed and
> OpenCL works, you can ignore this message)
>   clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
>   clCreateContext(NULL, ...) [default]No devices found in platform
>   clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found
> in platform
> beignet-opencl-icd: no supported GPU found, this is probably the wrong
> opencl-icd package for this hardware (If you have multiple ICDs installed and
> OpenCL works, you can ignore this message)
>   clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found
> in platform
>   clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No
> devices found in platform
>   clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices
> found in platform
> beignet-opencl-icd: no supported GPU found, this is probably the wrong
> opencl-icd package for this hardware (If you have multiple ICDs installed and
> OpenCL works, you can ignore this message)
>   clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found
> in platform
> 
> ICD loader properties
>   ICD loader Name OpenCL ICD Loader
>   ICD loader Vendor   OCL Icd free software
>   ICD loader Version  2.2.9
>   ICD loader Profile  OpenCL 2.1
> 
> The GPU itself is found by the system:
> 
> # lspci -nn |grep VGA
> 00:02.0 VGA compatible controller [0300]: Intel Corporation Sky Lake
> Integrated Graphics [8086:1912] (rev 06)
> 
> Could you please drop me some hints on where to dig further? I feel like I'm
> stuck.
> 
> BTW, thank you very much for the debian package that I found in Debian sid,
> I took its controls and used them to build a package for Ubuntu, with some
> modifications (e.g. killed X dependency).
> 
> 
> 21.09.2016, 22:38, "Rebecca N. Palmer" <rebecca_pal...@zoho.com>:
> >  I just built beignet in a chroot with no X11 installed; it didn't
> > have
> >  that string, and worked (when run as root - for ordinary users, it
> >  failed with "/dev/dri/card0 not authenticated", but this is expected).
> >

Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-22 Thread Seva Gluschenko
Hello Rebecca,

Please accept my apologies for being not very informative. I'm running Ubuntu 
16.04.1LTS x86_64 on Intel Core i7-6700, and I had the patched Linux kernel 
4.4.21-intel.r16.5 and Intel's opencl_runtime_16.1.1_x64_ubuntu_6.4.0.25 
installed in parallel with Beignet. After erasing all that stuff and switching 
back to the standard kernel (4.4.0-38-generic, in fact 4.4.17 with patches, 
according to ChangeLog), with Beignet as the only ICD provider, clinfo no 
longer fails without X. Unfortunately, it does not find any GPU either:

# clinfo 
Number of platforms   1
  Platform Name   Intel Gen OCL Driver
  Platform Vendor Intel
  Platform VersionOpenCL 1.2 beignet 1.2
  Platform ProfileFULL_PROFILE
  Platform Extensions 
cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics 
cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics 
cl_khr_byte_addressable_store cl_khr_3d_image_writes cl_khr_image2d_from_buffer 
cl_khr_spir cl_khr_icd cl_intel_accelerator cl_intel_motion_estimation 
cl_intel_subgroups
  Platform Extensions function suffix Intel
beignet-opencl-icd: no supported GPU found, this is probably the wrong 
opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this 
message)

  Platform Name   Intel Gen OCL Driver
Number of devices 0

NULL platform behavior
  clGetPlatformInfo(NULL, CL_PLATFORM_NAME, ...)  Intel Gen OCL Driver
beignet-opencl-icd: no supported GPU found, this is probably the wrong 
opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this 
message)
  clGetDeviceIDs(NULL, CL_DEVICE_TYPE_ALL, ...)   Intel Gen OCL Driver
  clCreateContext(NULL, ...) [default]No devices found in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CPU)  No devices found in 
platform
beignet-opencl-icd: no supported GPU found, this is probably the wrong 
opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this 
message)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_GPU)  No devices found in 
platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ACCELERATOR)  No devices found 
in platform
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_CUSTOM)  No devices found in 
platform
beignet-opencl-icd: no supported GPU found, this is probably the wrong 
opencl-icd package for this hardware
(If you have multiple ICDs installed and OpenCL works, you can ignore this 
message)
  clCreateContextFromType(NULL, CL_DEVICE_TYPE_ALL)  No devices found in 
platform

ICD loader properties
  ICD loader Name OpenCL ICD Loader
  ICD loader Vendor   OCL Icd free software
  ICD loader Version  2.2.9
  ICD loader Profile  OpenCL 2.1

The GPU itself is found by the system:

# lspci -nn |grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Sky Lake Integrated 
Graphics [8086:1912] (rev 06)

Could you please drop me some hints on where to dig further? I feel like I'm 
stuck.

BTW, thank you very much for the debian package that I found in Debian sid, I 
took its controls and used them to build a package for Ubuntu, with some 
modifications (e.g. killed X dependency).


21.09.2016, 22:38, "Rebecca N. Palmer" :
>  I just built beignet in a chroot with no X11 installed; it didn't have
>  that string, and worked (when run as root - for ordinary users, it
>  failed with "/dev/dri/card0 not authenticated", but this is expected).
>
>  Debian's (with-X) beignet has that string and a few more (__cxx11,
>  x11_display, x11_screen, x11_dpy).
>
>  Did you do the no-X compile by an explicit option, or by not installing
>  the X headers (libx11-dev, libxext-dev, libxfixes-dev)?
>
>  Which clinfo is this (there are at least 3 implementations), and can you
>  get a backtrace of the error (gdb clinfo)?
>
>  beignet doesn't need any kernel patches on recent kernels (>=4.2; check
>  with uname -r), and in the known cases where it does, the error is
>  "Beignet: self-test failed" not yours.



-- 
Best Regards,

Seva Gluschenko
___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet


Re: [Beignet] few questions on Beignet-OpenCL-ICD v1.2.0 regarding X11 and kernel patches

2016-09-21 Thread Rebecca N. Palmer
I just built beignet in a chroot with no X11 installed; it didn't have 
that string, and worked (when run as root - for ordinary users, it 
failed with "/dev/dri/card0 not authenticated", but this is expected).


Debian's (with-X) beignet has that string and a few more (__cxx11, 
x11_display, x11_screen, x11_dpy).


Did you do the no-X compile by an explicit option, or by not installing 
the X headers (libx11-dev, libxext-dev, libxfixes-dev)?


Which clinfo is this (there are at least 3 implementations), and can you 
get a backtrace of the error (gdb clinfo)?


beignet doesn't need any kernel patches on recent kernels (>=4.2; check 
with uname -r), and in the known cases where it does, the error is 
"Beignet: self-test failed" not yours.


___
Beignet mailing list
Beignet@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/beignet