[Bf-committers] Builders: please upgrade to CUDA 5.0

Jürgen Herrmann shadowrom at me.com
Sun Jun 23 20:18:35 CEST 2013


Hi Brecht, 

When building cycles cuda kernels on VS2012 with cuda 5.5 ptxas.exe crashes
on generating the sm_35.cubin.
This happen on 32 bits only 64bits is fine.
I found out that the --maxrregcount=32 option is the problem here, changing
this to any other value makes it work fine (even 31 works, but as I read the
documentation it says that the value is rounded to the next multiple of 4
O_o).

This helped to work around this issue on my system:

Index: intern/cycles/kernel/CMakeLists.txt
===================================================================
--- intern/cycles/kernel/CMakeLists.txt	(revision 57664)
+++ intern/cycles/kernel/CMakeLists.txt	(working copy)
@@ -170,7 +170,12 @@
 				set(cuda_arch_flags "--maxrregcount=32")
 			else()
 				# sm_3x
-				set(cuda_arch_flags "--maxrregcount=32")
+				# Workaround for Cuda 5.5 crashes with VC
2012 32-bits let the compiler determine maxrregcount itself
+				if(CUDA_VERSION GREATER 50 AND ${arch}
MATCHES "sm_35" AND MSVC11 AND CUDA_BITS MATCHES "32")
+					set(cuda_arch_flags
"--maxrregcount=0")
+				else()
+					set(cuda_arch_flags
"--maxrregcount=32")
+				endif()
 			endif()
 
 			set(cuda_math_flags "--use_fast_math")



-----Ursprüngliche Nachricht-----
Von: bf-committers-bounces at blender.org
[mailto:bf-committers-bounces at blender.org] Im Auftrag von Brecht Van Lommel
Gesendet: Freitag, 21. Juni 2013 12:15
An: bf-blender developers
Betreff: Re: [Bf-committers] Builders: please upgrade to CUDA 5.0

See the blenderartists threads starting from here:
http://www.blenderartists.org/forum/showthread.php?216113-Brecht-s-easter-eg
g-surprise-Modernizing-shading-and-rendering&p=2404699&viewfull=1#post240469
9

On Fri, Jun 21, 2013 at 11:26 AM, Knapp <magick.crow at gmail.com> wrote:
>> * Significant Cycles speedups for some scenes and graphics cards
>
> Which?
>
>
>
> --
> Douglas E Knapp
>
> Creative Commons Film Group, Helping people make open source movies 
> with open source software!
> http://douglas.bespin.org/CommonsFilmGroup/phpBB3/index.php
>
> Massage in Gelsenkirchen-Buer:
> http://douglas.bespin.org/tcm/ztab1.htm
> Please link to me and trade links with me!
>
> Open Source Sci-Fi mmoRPG Game project.
> http://sf-journey-creations.wikispot.org/Front_Page
> http://code.google.com/p/perspectiveproject/
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
_______________________________________________
Bf-committers mailing list
Bf-committers at blender.org
http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list