Forum général.général cg (shaders de nvidia) est il bien libre ?

Posté par  (site web personnel) .
Étiquettes : aucune
0
2
mai
2008
Bonsoir,

Je me demande si le langage de shaders de nvidia (cg) est libre. En effet, j'ai longtemps cru qu'il ne l'était pas (et il n'a pas l'air d'être inclus dans un grand nombre de distributions).

Cependant, sur le site de nvidia, le code du compilateur semble être disponnible et open-source:
http://developer.nvidia.com/object/cg_compiler_code.html

Alors, qu'en est il ?

cg est-ce plus que le compilateur ... est-ce seulement une ancienne version qui est libre ?

Mildred
  • # moui

    Posté par  (site web personnel) . Évalué à 2.

    S'il n'est pas inclus dans les distributions GNU/Linux c'est peut-être que
    This release provides the source code for the Cg compiler (cgc.exe) with a "generic" profile, which does some minimal semantic checks and prints out a tree representation of the code. It can be built either with the included Microsoft Visual C++ 6.0 projects and workspace, or with the included Makefile. The release also includes examples, along with a detailed description of the release contents in the Readme.txt file.
    mais il compile peut-être avec gcc ?

    Si tu le télécharges, tu as un README.txt indiquant ce qui suit (j'ai mis en gras ce qui ressemble à une licence BSD 2-clause, donc libre.


    -------
    LICENSE
    -------

    Copyright (c) 2002, NVIDIA Corporation.

    NVIDIA Corporation("NVIDIA") supplies this software to you in
    consideration of your agreement to the following terms, and your use,
    installation, modification or redistribution of this NVIDIA software
    constitutes acceptance of these terms. If you do not agree with these
    terms, please do not use, install, modify or redistribute this NVIDIA
    software.

    In consideration of your agreement to abide by the following terms, and
    subject to these terms, NVIDIA grants you a personal, non-exclusive
    license, under NVIDIA's copyrights in this original NVIDIA software (the
    "NVIDIA Software"), to use, reproduce, modify and redistribute the
    NVIDIA Software, with or without modifications, in source and/or binary
    forms; provided that if you redistribute the NVIDIA Software, you must
    retain the copyright notice of NVIDIA, this notice and the following
    text and disclaimers in all such redistributions of the NVIDIA Software.

    Neither the name, trademarks, service marks nor logos of NVIDIA
    Corporation may be used to endorse or promote products derived from the
    NVIDIA Software without specific prior written permission from NVIDIA.
    Except as expressly stated in this notice, no other rights or licenses
    express or implied, are granted by NVIDIA herein, including but not
    limited to any patent rights that may be infringed by your derivative
    works or by other works in which the NVIDIA Software may be
    incorporated. No hardware is licensed hereunder.

    THE NVIDIA SOFTWARE IS BEING PROVIDED ON AN "AS IS" BASIS, WITHOUT
    WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED,
    INCLUDING WITHOUT LIMITATION, WARRANTIES OR CONDITIONS OF TITLE,
    NON-INFRINGEMENT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
    ITS USE AND OPERATION EITHER ALONE OR IN COMBINATION WITH OTHER
    PRODUCTS.

    IN NO EVENT SHALL NVIDIA BE LIABLE FOR ANY SPECIAL, INDIRECT,
    INCIDENTAL, EXEMPLARY, CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
    TO, LOST PROFITS; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
    USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) OR ARISING IN ANY WAY
    OUT OF THE USE, REPRODUCTION, MODIFICATION AND/OR DISTRIBUTION OF THE
    NVIDIA SOFTWARE, HOWEVER CAUSED AND WHETHER UNDER THEORY OF CONTRACT,
    TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE, EVEN IF
    NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    • [^] # Re: moui

      Posté par  . Évalué à 2.

      le makefile semble pour unix, mais je n'ai pas réussi à en faire grand chose. Peut-être trop vieux par rapport aux standards actuels ?

      check.c: In function ‘CheckForUnsupportedStatements’:
      check.c:347: error: lvalue required as increment operand
      make: *** [check.o] Erreur 1

      Ensuite il me dit

      make: *** Pas de règle pour fabriquer la cible « ihash.o », nécessaire pour « cgc ». Arrêt.

      j'ai donc retiré le ihash.o dans le makefile.

      Ça compile quand même.

      Only wimps use tape backup: real men just upload their important stuff on megaupload, and let the rest of the world ~~mirror~~ link to it

      • [^] # Re: moui

        Posté par  . Évalué à 2.

        je précise, j'ai court-circuité la partie avec "CheckForUnsupportedStatements" parce que je ne savais pas comment corrigé, c'est comme cela que cela a pu compiler. J'ai ensuite un beau :

        ./cgc
        # Generic output by Cg compiler
        // cgc version 1.1.0000, build date May 2 2008 23:13:57

        Only wimps use tape backup: real men just upload their important stuff on megaupload, and let the rest of the world ~~mirror~~ link to it

  • # Debian

    Posté par  . Évalué à 2.

    dans Debian, le paquet nvidia-cg-toolkit est dans contrib :
    http://packages.debian.org/search?suite=all&section=all&(...)

Suivre le flux des commentaires

Note : les commentaires appartiennent à celles et ceux qui les ont postés. Nous n’en sommes pas responsables.