diff options
author | Anthony LaTorre <tlatorre9@gmail.com> | 2011-06-24 15:57:39 -0400 |
---|---|---|
committer | Anthony LaTorre <tlatorre9@gmail.com> | 2011-06-24 15:57:39 -0400 |
commit | aa0f12c8b6c6d4e0858d46eba5499d9682ecbe9d (patch) | |
tree | 9416de3109ad4692e0d7ade5c0853ce3ecde6040 /src | |
parent | d63d0d0cd84519b7c0bd7f6b576bd0f24ff22dc2 (diff) | |
download | chroma-aa0f12c8b6c6d4e0858d46eba5499d9682ecbe9d.tar.gz chroma-aa0f12c8b6c6d4e0858d46eba5499d9682ecbe9d.tar.bz2 chroma-aa0f12c8b6c6d4e0858d46eba5499d9682ecbe9d.zip |
argument '-j' to threadtest.py now specifies a list of device ids to be used. GPUThread objects now shallow copy the geometry so that threads are not writing to the same memory when the geometry is loaded onto the gpu. the model number for the 12" Hamamatsu PMT is R11708, not r7081 (which is the model for the 10" PMT); all references to the 12" PMT were changed accordingly. only allocate space for 20 materials and 20 surfaces on the gpu instead of 100 to save some space. started to modify track.py to build its own photons and module since the GPUThread object only copies photon hit times back from the gpu (not track information), but I am waiting to find out if pycuda GPUArrays can be used with vector types.
Diffstat (limited to 'src')
-rw-r--r-- | src/materials.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/materials.h b/src/materials.h index 77c9f43..6115396 100644 --- a/src/materials.h +++ b/src/materials.h @@ -20,8 +20,8 @@ struct Surface float *reflection_specular; }; -__device__ Material materials[100]; -__device__ Surface surfaces[100]; +__device__ Material materials[20]; +__device__ Surface surfaces[20]; __device__ float interp_property(const float &x, const float *fp) { |