Fix rendering at insane resolutions

This commit is contained in:
Steven Robertson
2011-10-19 14:17:01 -04:00
parent 3466113d64
commit efc2ac23e2
3 changed files with 6 additions and 4 deletions

View File

@ -337,8 +337,9 @@ class Animation(object):
bkgd = vec.make_float3(*(bkgd / n))
color_fun = self.mod.get_function("colorclip")
blocks = int(np.ceil(np.sqrt(nbins / 256)))
color_fun(d_out, gam, vib, hipow, lin, lingam, bkgd,
block=(256, 1, 1), grid=(nbins / 256, 1),
block=(256, 1, 1), grid=(blocks, blocks),
stream=filt_stream)
cuda.memcpy_dtoh_async(h_out, d_out, filt_stream)