Is the CUDA API version and driver version always the same











up vote
0
down vote

favorite












The CUDA version obtained from cuDriverGetVersion, and the API version from the macro CUDA_VERSION.
Are they supposed to be always the same (assuming CUDA is correctly installed)?










share|improve this question


























    up vote
    0
    down vote

    favorite












    The CUDA version obtained from cuDriverGetVersion, and the API version from the macro CUDA_VERSION.
    Are they supposed to be always the same (assuming CUDA is correctly installed)?










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      The CUDA version obtained from cuDriverGetVersion, and the API version from the macro CUDA_VERSION.
      Are they supposed to be always the same (assuming CUDA is correctly installed)?










      share|improve this question













      The CUDA version obtained from cuDriverGetVersion, and the API version from the macro CUDA_VERSION.
      Are they supposed to be always the same (assuming CUDA is correctly installed)?







      cuda






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 22 hours ago









      tmlen

      4,12321551




      4,12321551
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          The CUDA_VERSION macro tells you which version of the CUDA API you are compiling your code against. cuDriverGetVersion() will tell you the most recent version of CUDA that the driver you're running with supports. So no, they don't have to be the same. For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371032%2fis-the-cuda-api-version-and-driver-version-always-the-same%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote



            accepted










            The CUDA_VERSION macro tells you which version of the CUDA API you are compiling your code against. cuDriverGetVersion() will tell you the most recent version of CUDA that the driver you're running with supports. So no, they don't have to be the same. For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…






            share|improve this answer



























              up vote
              1
              down vote



              accepted










              The CUDA_VERSION macro tells you which version of the CUDA API you are compiling your code against. cuDriverGetVersion() will tell you the most recent version of CUDA that the driver you're running with supports. So no, they don't have to be the same. For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…






              share|improve this answer

























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                The CUDA_VERSION macro tells you which version of the CUDA API you are compiling your code against. cuDriverGetVersion() will tell you the most recent version of CUDA that the driver you're running with supports. So no, they don't have to be the same. For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…






                share|improve this answer














                The CUDA_VERSION macro tells you which version of the CUDA API you are compiling your code against. cuDriverGetVersion() will tell you the most recent version of CUDA that the driver you're running with supports. So no, they don't have to be the same. For example, an application that was compiled for CUDA 9.x will run perfectly fine with a driver that supports CUDA 10…







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 20 hours ago

























                answered 20 hours ago









                Michael Kenzel

                2,623714




                2,623714






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53371032%2fis-the-cuda-api-version-and-driver-version-always-the-same%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Saint-Aignan (Tarn-et-Garonne)

                    Volksrepublik China

                    How to test boost logger output in unit testing?