Blender: CUDA kernel compilation failed
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
add a comment |
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
How did you solve this?
– nbubis
Jan 17 at 15:53
add a comment |
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
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
nvidia cuda blender
asked Nov 11 '18 at 23:31
BernardoBernardo
61
61
How did you solve this?
– nbubis
Jan 17 at 15:53
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
edited Jan 17 at 17:00
answered Jan 17 at 16:12
nbubisnbubis
1751114
1751114
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
How did you solve this?
– nbubis
Jan 17 at 15:53