summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2013-01-28 21:03:41 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:39 -0700
commit411fb45b8068541f5f40a595621af0b7d1765eb8 (patch)
treea1d55b7bb64eb29ae898d13755685864b298b7ef
parent6706f67febc8fb234630986894df67fd948970ac (diff)
downloadchroma-411fb45b8068541f5f40a595621af0b7d1765eb8.tar.gz
chroma-411fb45b8068541f5f40a595621af0b7d1765eb8.tar.bz2
chroma-411fb45b8068541f5f40a595621af0b7d1765eb8.zip
Mark one of the propagate functions as __noinline__ to work around bug where cicc hangs during compilation.
-rw-r--r--chroma/cuda/photon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chroma/cuda/photon.h b/chroma/cuda/photon.h
index 00aee95..7c5c788 100644
--- a/chroma/cuda/photon.h
+++ b/chroma/cuda/photon.h
@@ -284,7 +284,7 @@ int propagate_to_boundary(Photon &p, State &s, curandState &rng,
} // propagate_to_boundary
-__device__ void
+__noinline__ __device__ void
propagate_at_boundary(Photon &p, State &s, curandState &rng)
{
float incident_angle = get_theta(s.surface_normal,-p.direction);