Just as you want to start any X application in a text console, you need to set the proper DISPLAY environment. Usually, "export DISPLAY=:0" should work.
CC to the list. > -----Original Message----- > From: Gao, Sanshan [mailto:[email protected]] > Sent: Wednesday, April 29, 2015 5:13 PM > To: Zhigang Gong > Subject: Re: Re: Re: [Beignet] Must > > This problem has been fixed by run in bash directly, not by ssh. > > But if I want to run OpenCL program in Putty by ssh, what should I do? > > > > -----原始邮件----- > > 发件人: "Zhigang Gong" <[email protected]> > > 发送时间: 2015-04-29 16:05:06 (星期三) > > 收件人: "Gao, Sanshan" <[email protected]> > > 抄送: > > 主题: Re: Re: [Beignet] Must > > > > Did you run it in a text console or under X environment? > > > > On Wed, Apr 29, 2015 at 04:59:20PM +0800, Gao, Sanshan wrote: > > > I have run commands below to clean and then recompile, but nothing > changed, root privilege is still necessary. > > > > > > /beignet/build~ make clean > > > /beignet/build# make clean > > > /beignet~ rm -r build > > > > > > > > > > -----原始邮件----- > > > > 发件人: "Zhigang Gong" <[email protected]> > > > > 发送时间: 2015-04-29 13:49:31 (星期三) > > > > 收件人: "Gao, Sanshan" <[email protected]> > > > > 抄送: [email protected] > > > > 主题: Re: [Beignet] Must > > > > > > > > You may need a completely clean rebuild which need to delete all the old > files. > > > > > > > > On Wed, Apr 29, 2015 at 02:43:05PM +0800, Gao, Sanshan wrote: > > > > > > > When I run any OpenCL programs, I need root privilege > > > > > > You shouldn't; you may have accidentally built beignet without > > > > > > X support. Run > > > > > > > > > > > > sudo apt-get install cmake pkg-config python ocl-icd-dev > > > > > > ocl-icd-opencl-dev libdrm-dev libxfixes-dev libxext-dev > > > > > > llvm-3.5-dev clang-3.5 libclang-3.5-dev libtinfo-dev > > > > > > libedit-dev zlib1g-dev > > > > > > > > > > > > then recompile beignet. > > > > > > > > > > > > > > > > After running above command and recompiling, root privilege is still > necessary. Otherwise, I get the hints below. > > > > > > > > > > gss@Intel-GIGA1:~/files/beignet/build/utests$ . setenv.sh > > > > > gss@Intel-GIGA1:~/files/beignet/build/utests$ ./utest_run Device > > > > > open failed, aborting... > > > > > platform number 1 > > > > > platform_profile "FULL_PROFILE" > > > > > platform_name "Intel Gen OCL Driver" > > > > > platform_vendor "Intel" > > > > > platform_version "OpenCL 1.2 beignet 1.1 (git-dc22a04)" > > > > > 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_spir cl_khr_icd" > > > > > Device open failed, aborting... > > > > > cl_get_gt_device(): error, unknown device: ffffffff error > > > > > calling clGetDeviceIDs Failed to initialize cl device. > > > > > > > > > > summary: > > > > > ---------- > > > > > total: 731 > > > > > run: 0 > > > > > pass: 0 > > > > > fail: 0 > > > > > > > > > > But as root, everything is OK. The only difference from instructions > > > > > on > Beignet homepage, when compile, is change ">make install" to ">sudo make > install", otherwise, permission is denied to copy files to specified > directory. > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > Beignet mailing list > > > > > [email protected] > > > > > http://lists.freedesktop.org/mailman/listinfo/beignet _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
