WineHQ
Wine Forums

Board index » WineHQ » Wine Help




 Page 1 of 1 [ 5 posts ] 



 
Author Message
 Post Posted: Wed Oct 05, 2011 7:36 pm 
Offline
Level 2
Level 2
User avatar

Joined: Mon Sep 26, 2011 4:08 pm
Posts: 31
My video card is a NVIDIA GT 220 with the 280.13 drivers on Ubuntu 11.04(64-bit) and I'm building W.I.N.E(32-bit version) from source. So how do I compile in OpenCL support you ask?


Code:
    cd /usr/include
    #make directorty#
    sudo mkdir CL
    cd CL
    #download opencl headers#
    sudo wget http://www.khronos.org/registry/cl/api/1.1/cl_ext.h
    sudo wget http://www.khronos.org/registry/cl/api/1.1/cl_gl_ext.h
    sudo wget http://www.khronos.org/registry/cl/api/1.1/cl_gl.h
    sudo wget http://www.khronos.org/registry/cl/api/1.1/cl.h
    sudo wget http://www.khronos.org/registry/cl/api/1.1/cl_platform.h
    sudo wget http://www.khronos.org/registry/cl/api/1.1/opencl.h
    #custom configure. nVidia provides 32-bit opencl drivers in /usr/lib32#
    CC="gcc-4.5 -m32" LDFLAGS="-L/lib32 -L/usr/lib32 -Wl,-rpath,/lib32 -Wl,-rpath,/usr/lib32" OPENCL_LIBS="/usr/lib32" OPENCL_CFLAGS="/usr/include/CL" ./configure -v --prefix=/usr
   #make
   make and sudo make install


Now you will have OpenCL support in W.I.N.E. NJoy!


Top 
 Post subject:
 Post Posted: Wed Oct 05, 2011 7:56 pm 
Offline
Level 2
Level 2
User avatar

Joined: Mon Sep 26, 2011 4:08 pm
Posts: 31
almost forgot add '--with-opencl' in the configure line after '--prefix=/usr '.


Top 
 Post subject:
 Post Posted: Thu Oct 06, 2011 7:13 am 
Offline
Level 8
Level 8

Joined: Wed Oct 29, 2008 4:53 pm
Posts: 1099
Location: Amsterdam, Netherlands
Could you tell me if this also works with the GeForce 540G, or that I'll just have to try it out myself? (Don't have access to the notebook with that GPU right now.)


Top 
 Post subject:
 Post Posted: Thu Oct 06, 2011 9:40 am 
Offline
Level 2
Level 2

Joined: Tue Aug 30, 2011 6:13 am
Posts: 10
in ubuntu theas headers are included in nvidia-current-dev but they are in /usr/include/nvidia-curren/cl and not in /usr/include/CL.


Top 
 Post subject:
 Post Posted: Thu Oct 06, 2011 1:58 pm 
Offline
Level 2
Level 2
User avatar

Joined: Mon Sep 26, 2011 4:08 pm
Posts: 31
Thaodan wrote:
in ubuntu theas headers are included in nvidia-current-dev but they are in /usr/include/nvidia-curren/cl and not in /usr/include/CL.


Thanks for pointing that out. Using the nVidia Binary driver (not the package maintainer version) the opencl headers aren't included so you have to make a directory and download them.


Top 
Display posts from previous:  Sort by  
 
 Page 1 of 1 [ 5 posts ] 




Board index » WineHQ » Wine Help


Who is online

Users browsing this forum: Bing [Bot] and 5 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: