Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 09-16-10, 07:35 AM   #13
hl_
Registered User
 
Join Date: Feb 2009
Posts: 138
Default Re: Header files in 260.x releases

You don't need "matching" headers for OpenCL/OpenGL. Just get the official headers from Khronos, a compliant implementation will always work correctly with these headers.
hl_ is offline   Reply With Quote
Old 09-16-10, 08:24 AM   #14
VLJ
Registered User
 
Join Date: Dec 2006
Posts: 16
Default Re: Header files in 260.x releases

OpenCL and OpenGL headers should be hardware dependant. This is a good thing that they are removed from nvidia driver. The fact that they are not easily retrievable is not a driver issue : it is up to distro packager to provides such standard headers.

You wouldn't like that each -devel ships with its own c++ standard library header files, that's the same for opengl/cl headers.
VLJ is offline   Reply With Quote
Old 09-16-10, 11:08 AM   #15
slackkeymike
Registered User
 
Join Date: Sep 2010
Posts: 20
Default Re: Header files in 260.x releases

Quote:
Originally Posted by Deanjo View Post
Where for example are we supposed to get gl.h as the nvidia supplied ones varied dramatically from the distro's gl.h and is not readily downloadable from http://www.opengl.org/registry/ ?
Very good point. Apparently it is a royal pain in their ass to do this, so its easier to make it someone else's royal pain.
slackkeymike is offline   Reply With Quote
Old 09-17-10, 04:56 AM   #16
Gusar
Registered User
 
Join Date: Apr 2006
Posts: 277
Default Re: Header files in 260.x releases

Quote:
Originally Posted by slackkeymike View Post
Very good point. Apparently it is a royal pain in their ass to do this, so its easier to make it someone else's royal pain.
Oh please. Just wait for distributions to adapt, like they had to adapt when libvdpau was split from the driver package into it's own package.
Gusar is offline   Reply With Quote
Old 09-17-10, 05:06 AM   #17
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Header files in 260.x releases

Quote:
Originally Posted by VLJ View Post
OpenCL and OpenGL headers should be hardware dependant.
Right. That is why they should be provided with library. If library is hardware accelerated its place is inside driver package because it must stick closely to driver.

Quote:
Originally Posted by VLJ View Post
This is a good thing that they are removed from nvidia driver. The fact that they are not easily retrievable is not a driver issue : it is up to distro packager to provides such standard headers.
About which standard you talk about? Nvidia gl.h implementation, opengl.org gl.h implementation which is not downloadable now or mesa gl.h which is different from Nvidia gl.h? Some applications like xorg server only compiles with mesa gl.h but not nvidia gl.h so as you see there are at least 2 or even 3 gl.h standards. Having gl.h with Nvidia driver package we could be sure it uses all capabilities of Nvidia's hw accelerated openGL library. When this is dropped we do not know if OpenGL or Mesa header better matches Nvidia's OpenGL library.

Quote:
Originally Posted by VLJ View Post
You wouldn't like that each -devel ships with its own c++ standard library header files, that's the same for opengl/cl headers.
You have different C compilers (gcc or Intel icc) they may use different headers. It is all about implementation.

Let's sum this up:
1. There is no gl*.h files in driver anymore
2. There is no gl.h and glx.h files on http://www.opengl.org/registry/
3. Only Mesa headers are present and ready to use.
So the choice is clear.
zbiggy is offline   Reply With Quote
Old 09-24-10, 10:58 AM   #18
Ross Alexander
Registered User
 
Join Date: Sep 2010
Posts: 2
Default Re: Header files in 260.x releases

Looking athttp://www.khronos.org/registry/implementers_guide.htm under 2.2.2.1 it seems clear that the Mesa gl.h and glx.h should be used. If you are using source then from Mesa-7.8.2 configure with --with-driver=osmesa. This is avoid the install overriding the nvidia libraries.
Ross Alexander is offline   Reply With Quote
Old 09-27-10, 05:58 PM   #19
zbiggy
Registered User
 
Join Date: Sep 2002
Posts: 623
Default Re: Header files in 260.x releases

Quote:
Originally Posted by Ross Alexander View Post
Looking athttp://www.khronos.org/registry/implementers_guide.htm under 2.2.2.1 it seems clear that the Mesa gl.h and glx.h should be used. If you are using source then from Mesa-7.8.2 configure with --with-driver=osmesa. This is avoid the install overriding the nvidia libraries.
Fixed link: http://www.khronos.org/registry/implementers_guide.pdf

Thanks for sharing this link. Now I have some kind of official document I can base on.

Last edited by zbiggy; 10-16-10 at 07:51 PM.
zbiggy is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:54 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.