Age | Commit message (Collapse) | Author |
|
Fixes "TypeError: 'numpy.int64' does not have the buffer interface" error.
|
|
This causes weird segfaults on Macs, and is probably a source of
random crashing on other processes. Also call pygame.init()
explicitly in the new process for good measure.
|
|
This is an optimization that is helpful for smaller detectors, even if
giant water Cherenkov detectors cannot take advantage of it.
Modified Mapped() helper function to pass through GPU arrays, which
makes it much easier to flip between arrays on the CPU and the GPU.
|
|
old location in newer pycuda releases.
|
|
|
|
|
|
|
|
millimeters/nanoseconds/MeV in order to match GEANT4, and also avoid
huge discrepancies in magnitude caused by values like 10e-9 sec.
Along the way, cleaned up a few things:
* Switch the PI and SPEED_OF_LIGHT constants from double to single
precision. This avoid some unnecessary double precision calculations
in the GPU code.
* Fixed a silly problem in the definition of the spherical spiral. Now
the demo detector looks totally awesome. Also wrapped it in a
black surface. Demo detector now has 10055 PMTs.
* Updated the test_ray_intersection data file to reflect the new units.
* Fix a missing import in chroma.gpu.tools
|
|
everything from the sub modules, so usage is the same.
|