CUDA kernel compilation fails with PTX assembler internal failure #39526

Closed
opened 2014-03-31 05:39:29 +02:00 by Benjamin · 10 comments

System Information
OS: Gentoo Linux (kernel version: 3.0), Graphics Card: Nvidia GeForce GT 640, Cuda version: 5.5

Blender Version
Broken: 2.70, c24c343
Worked: 2.70, unknown hash (downloaded as source code from blender website for 2.70 release rather than using git)

Short description of error
When rendering using Cuda for the first time it needed to compile the kernels. It failed at this step with the following error message:

CUDA version 5.5 detected, build may succeed but only CUDA 5.0 is officially supported.
Compiling CUDA kernel ...
"nvcc" -arch=sm_30 -m32 --cubin "/root/blender-versions/mycopy/build/bin/2.70/scripts/addons/cycles/kernel/kernel.cu" -o "/root/.config/blender/2.70/cache/cycles_kernel_sm30_95088DA6C7DFF4F1EA0DD66BE94D2583.cubin" --ptxas-options="-v" --maxrregcount=32 --use_fast_math -I"/root/blender-versions/mycopy/build/bin/2.70/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=55
nvcc error : 'ptxas' died due to signal 11 (Invalid memory reference)
CUDA kernel compilation failed, see console for details.

Refer to the Cycles GPU rendering documentation for possible solutions:
ht

I do not think that this is actually a problem with Cuda 5.5 because it worked on the other build using the same Cuda version. I noticed two unusual problems here: the error message is not a compiler error but an assembler error, and it is actually an internal error in ptxas itself. I found a single reference to this problem but it was on the Nvidia forums (which have been down for multiple years and force a redirection loop with Midori) :http:*devtalk.nvidia.com/default/topic/395921/cuda-programming-and-performance/-ptxas-died/

Exact steps for others to reproduce the error
Press f12. default.blend

**System Information** OS: Gentoo Linux (kernel version: 3.0), Graphics Card: Nvidia GeForce GT 640, Cuda version: 5.5 **Blender Version** Broken: 2.70, c24c343 Worked: 2.70, unknown hash (downloaded as source code from blender website for 2.70 release rather than using git) **Short description of error** When rendering using Cuda for the first time it needed to compile the kernels. It failed at this step with the following error message: CUDA version 5.5 detected, build may succeed but only CUDA 5.0 is officially supported. Compiling CUDA kernel ... "nvcc" -arch=sm_30 -m32 --cubin "/root/blender-versions/mycopy/build/bin/2.70/scripts/addons/cycles/kernel/kernel.cu" -o "/root/.config/blender/2.70/cache/cycles_kernel_sm30_95088DA6C7DFF4F1EA0DD66BE94D2583.cubin" --ptxas-options="-v" --maxrregcount=32 --use_fast_math -I"/root/blender-versions/mycopy/build/bin/2.70/scripts/addons/cycles/kernel" -DNVCC -D__KERNEL_CUDA_VERSION__=55 nvcc error : 'ptxas' died due to signal 11 (Invalid memory reference) CUDA kernel compilation failed, see console for details. Refer to the Cycles GPU rendering documentation for possible solutions: ht I do not think that this is actually a problem with Cuda 5.5 because it worked on the other build using the same Cuda version. I noticed two unusual problems here: the error message is not a compiler error but an assembler error, and it is actually an internal error in ptxas itself. I found a single reference to this problem but it was on the Nvidia forums (which have been down for multiple years and force a redirection loop with Midori) :[http:*devtalk.nvidia.com/default/topic/395921/cuda-programming-and-performance/-ptxas-died/ ](http:*devtalk.nvidia.com/default/topic/395921/cuda-programming-and-performance/-ptxas-died/) **Exact steps for others to reproduce the error** Press f12. [default.blend](https://archive.blender.org/developer/F83528/default.blend)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Benjamin-L

Added subscriber: @Benjamin-L

#39513 was marked as duplicate of this issue

#39513 was marked as duplicate of this issue
Author

This comment was removed by @Benjamin-L

*This comment was removed by @Benjamin-L*
Author
Added subscribers: @MartijnBerger, @ThomasDinges, @zanqdo, @brecht
Author

◀ Merged tasks: #39513.

◀ Merged tasks: #39513.
Brecht Van Lommel was assigned by Bastien Montagne 2014-03-31 08:22:12 +02:00

Added subscriber: @mont29

Added subscriber: @mont29

Next time, please do not preform "management" tasks like merge & co, this is for devs to decide! And Cuda 5.0 and 5.5 are different things, as stated by your error message, 5.5 is not officially supported, while 5.0 is.

And even though the error happens in ptxas, it does not mean it’s not a CUDA issue! Also note that our kernel changes over time, so a hash might build on 5.5, and the next one fail.

We may close this report, since 5.5 is not supported, but will let Brecht decide.

Next time, please do not preform "management" tasks like merge & co, this is for devs to decide! And Cuda 5.0 and 5.5 are different things, as stated by your error message, 5.5 is not officially supported, while 5.0 is. And even though the error happens in ptxas, it does not mean it’s not a CUDA issue! Also note that our kernel changes over time, so a hash might build on 5.5, and the next one fail. We may close this report, since 5.5 is not supported, but will let Brecht decide.
Martijn Berger changed title from PTX assembler internal failure to CUDA kernel compilation fails with PTX assembler internal failure 2014-03-31 10:51:46 +02:00
Member

Changed status from 'Open' to: 'Duplicate'

Changed status from 'Open' to: 'Duplicate'
Member

✘ Merged into #39513.

✘ Merged into #39513.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#39526
No description provided.