Blender: CUDA kernel compilation failed












0















I tried the solutions presented in this other question without any succes: CUDA kernel compilation failed



Ie: I've tried running blender from terminal using sudo blender, installing g++5, changing kernel.cu. But nothing so far has worked



I'm using Ubuntu 16.04.5 LTS 64-bit



My graphic card is GeForce GT 740M/PCIe/SSE2 and I'm running Blender 2.76



$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17


This is what the terminal shows when trying to compile:



bernardo@Bernardo-asus:~$ sudo blender
connect failed: No such file or directory
Read new prefs: /home/bernardo/.config/blender/2.76/config/userpref.blend
read blend: /home/bernardo/Blender/donut10.blend
CUDA version 10.0 detected, build may succeed but only CUDA 6.5 is officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_30 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/bernardo/.config/blender/2.76/cache/cycles_kernel_sm30_01D31872AEE3D1F297035A84954E3182.cubin" --ptxas-options="-v" --use_fast_math -I"/usr/share/blender/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=100
/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/../../util_half.h(43): error: identifier "__float2half_rn" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00001291_00000000-6_kernel.cpp1.ii".
CUDA kernel compilation failed, see console for details.









share|improve this question























  • How did you solve this?

    – nbubis
    Jan 17 at 15:53
















0















I tried the solutions presented in this other question without any succes: CUDA kernel compilation failed



Ie: I've tried running blender from terminal using sudo blender, installing g++5, changing kernel.cu. But nothing so far has worked



I'm using Ubuntu 16.04.5 LTS 64-bit



My graphic card is GeForce GT 740M/PCIe/SSE2 and I'm running Blender 2.76



$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17


This is what the terminal shows when trying to compile:



bernardo@Bernardo-asus:~$ sudo blender
connect failed: No such file or directory
Read new prefs: /home/bernardo/.config/blender/2.76/config/userpref.blend
read blend: /home/bernardo/Blender/donut10.blend
CUDA version 10.0 detected, build may succeed but only CUDA 6.5 is officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_30 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/bernardo/.config/blender/2.76/cache/cycles_kernel_sm30_01D31872AEE3D1F297035A84954E3182.cubin" --ptxas-options="-v" --use_fast_math -I"/usr/share/blender/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=100
/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/../../util_half.h(43): error: identifier "__float2half_rn" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00001291_00000000-6_kernel.cpp1.ii".
CUDA kernel compilation failed, see console for details.









share|improve this question























  • How did you solve this?

    – nbubis
    Jan 17 at 15:53














0












0








0


1






I tried the solutions presented in this other question without any succes: CUDA kernel compilation failed



Ie: I've tried running blender from terminal using sudo blender, installing g++5, changing kernel.cu. But nothing so far has worked



I'm using Ubuntu 16.04.5 LTS 64-bit



My graphic card is GeForce GT 740M/PCIe/SSE2 and I'm running Blender 2.76



$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17


This is what the terminal shows when trying to compile:



bernardo@Bernardo-asus:~$ sudo blender
connect failed: No such file or directory
Read new prefs: /home/bernardo/.config/blender/2.76/config/userpref.blend
read blend: /home/bernardo/Blender/donut10.blend
CUDA version 10.0 detected, build may succeed but only CUDA 6.5 is officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_30 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/bernardo/.config/blender/2.76/cache/cycles_kernel_sm30_01D31872AEE3D1F297035A84954E3182.cubin" --ptxas-options="-v" --use_fast_math -I"/usr/share/blender/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=100
/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/../../util_half.h(43): error: identifier "__float2half_rn" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00001291_00000000-6_kernel.cpp1.ii".
CUDA kernel compilation failed, see console for details.









share|improve this question














I tried the solutions presented in this other question without any succes: CUDA kernel compilation failed



Ie: I've tried running blender from terminal using sudo blender, installing g++5, changing kernel.cu. But nothing so far has worked



I'm using Ubuntu 16.04.5 LTS 64-bit



My graphic card is GeForce GT 740M/PCIe/SSE2 and I'm running Blender 2.76



$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17


This is what the terminal shows when trying to compile:



bernardo@Bernardo-asus:~$ sudo blender
connect failed: No such file or directory
Read new prefs: /home/bernardo/.config/blender/2.76/config/userpref.blend
read blend: /home/bernardo/Blender/donut10.blend
CUDA version 10.0 detected, build may succeed but only CUDA 6.5 is officially supported.
Compiling CUDA kernel ...
"/usr/local/cuda/bin/nvcc" -arch=sm_30 -m64 --cubin "/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/kernel.cu" -o "/home/bernardo/.config/blender/2.76/cache/cycles_kernel_sm30_01D31872AEE3D1F297035A84954E3182.cubin" --ptxas-options="-v" --use_fast_math -I"/usr/share/blender/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=100
/usr/share/blender/scripts/addons/cycles/kernel/kernels/cuda/../../util_half.h(43): error: identifier "__float2half_rn" is undefined

1 error detected in the compilation of "/tmp/tmpxft_00001291_00000000-6_kernel.cpp1.ii".
CUDA kernel compilation failed, see console for details.






nvidia cuda blender






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 '18 at 23:31









BernardoBernardo

61




61













  • How did you solve this?

    – nbubis
    Jan 17 at 15:53



















  • How did you solve this?

    – nbubis
    Jan 17 at 15:53

















How did you solve this?

– nbubis
Jan 17 at 15:53





How did you solve this?

– nbubis
Jan 17 at 15:53










1 Answer
1






active

oldest

votes


















0














On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.



You want to add the following include:



#include "cuda_fp16.h"


And comment out the line:



typedef unsigned short half;


The file is located at:



/usr/share/blender/scripts/addons/cycles/kernel/util_half.h


The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.






share|improve this answer

























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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',
    autoActivateHeartbeat: false,
    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%2faskubuntu.com%2fquestions%2f1092086%2fblender-cuda-kernel-compilation-failed%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









    0














    On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.



    You want to add the following include:



    #include "cuda_fp16.h"


    And comment out the line:



    typedef unsigned short half;


    The file is located at:



    /usr/share/blender/scripts/addons/cycles/kernel/util_half.h


    The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.






    share|improve this answer






























      0














      On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.



      You want to add the following include:



      #include "cuda_fp16.h"


      And comment out the line:



      typedef unsigned short half;


      The file is located at:



      /usr/share/blender/scripts/addons/cycles/kernel/util_half.h


      The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.






      share|improve this answer




























        0












        0








        0







        On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.



        You want to add the following include:



        #include "cuda_fp16.h"


        And comment out the line:



        typedef unsigned short half;


        The file is located at:



        /usr/share/blender/scripts/addons/cycles/kernel/util_half.h


        The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.






        share|improve this answer















        On my machine, using Ubuntu 16.04 and Cuda 9.2, it looks like tweaking the util_half.h file solves this particular issue, though it seems to take forever for the rest of the process.



        You want to add the following include:



        #include "cuda_fp16.h"


        And comment out the line:



        typedef unsigned short half;


        The file is located at:



        /usr/share/blender/scripts/addons/cycles/kernel/util_half.h


        The correct way is to simply download a newer version of blender, which works with Cuda 9 out of the box.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 17 at 17:00

























        answered Jan 17 at 16:12









        nbubisnbubis

        1751114




        1751114






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1092086%2fblender-cuda-kernel-compilation-failed%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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局