[Gate-users] Gate simulation fails on GPU
Branderhorst, W.J.
W.J.Branderhorst at umcutrecht.nl
Mon Sep 28 15:40:49 CEST 2020
Dear GATE users,
We are trying to run a GATE simulation with voxelized phantom on our GPU. Installation of CUDA inside GATE seems successful but when we run our script, we get the following error:
GateGPUEmisTomo.cc (l.359): pelvis_phantom is not a GateRegularParameterized.
=======================================================================
====== Radioactive Decay Physics Parameters ========
=======================================================================
Max life time 1e+15 ps
Internal e- conversion flag true
Stored internal conversion coefficients false
Enable correlated gamma emission false
Max 2J for sampling of angular correlations 10
Atomic de-excitation enabled true
Auger electron emission enabled false
Auger cascade enabled false
Check EM cuts disabled for atomic de-excitation false
Use Bearden atomic level energies false
=======================================================================
GateGPUEmisTomoMessenger Update
WARNING - Attempt to delete the physical volume store while geometry closed !
WARNING - Attempt to delete the logical volume store while geometry closed !
WARNING - Attempt to delete the solid store while geometry closed !
WARNING - Attempt to delete the region store while geometry closed !
and the simulation seems to freeze. This is a bit strange as we have defined our phantom as a ImageRegularParametrisedVolume, see below:
--------------------------------------------------------------
Contents voxelized_pelvis_phantom.mac:
#
#
# P E L V I S S C A N V O X E L I Z E D P H A N T O M
/gate/world/daughters/name pelvis_phantom
/gate/world/daughters/insert ImageRegularParametrisedVolume
/gate/pelvis_phantom/geometry/setImage pelvis_phantom.mhd
/gate/pelvis_phantom/geometry/setRangeToMaterialFile range_atten_pelvis_phantom.dat
/gate/pelvis_phantom/placement/setTranslation 0.0 0.0 0.0 mm
/gate/pelvis_phantom/placement/setRotationAxis 1 0 0
/gate/pelvis_phantom/placement/setRotationAngle 0 deg
/gate/pelvis_phantom/attachPhantomSD
--------------------------------------------------------------
Contents range_atten_pelvis_phantom.dat:
3
0 9 Air true 1.0 0.0 0.0 0.2
10 19 Water false 0.0 1.0 0.0 0.2
20 29 SpineBone true 0.0 0.0 1.0 0.2
--------------------------------------------------------------
Contents voxelized_pelvis_phantom_source.mac:
# DECLARATION OF THE FACT THAT A VOXELIZED SOURCE WILL BE USED
# Always use the keyword voxel to declare the type
/gate/source/addSource pelvis_phantom_source GPUEmisTomo
/gate/source/pelvis_phantom_source/attachPhantomTo pelvis_phantom
/gate/source/pelvis_phantom_source/setGPUBufferSize 1000000
/gate/source/pelvis_phantom_source/setGPUDeviceID 1
# DECLARATION THAT THE VOXELIZED SOURCE WILL BE ENTERED USING IMAGE DATA
/gate/source/pelvis_phantom_source/reader/insert image
# INSERT THE TRANSLATOR THAT WILL CONVERT THE IMAGE FROM DIGITAL VALUES TO ACTIVITY VALUES
# Example for a linear translator: this scales all image values directly into activities
/gate/source/pelvis_phantom_source/imageReader/translator/insert linear
/gate/source/pelvis_phantom_source/imageReader/linearTranslator/setScale 1. Bq
# THE FOLLOWING LINE ALLOWS YOU TO INSERT THE IMAGE DATA USING THE APPROPRIATE EXTENSION FILE
/gate/source/pelvis_phantom_source/imageReader/readFile pelvis_phantom_source.mhd
/gate/source/pelvis_phantom_source/imageReader/verbose 1
# THE DEFAULT POSITION OF THE VOXELIZED SOURCE IS IN THE 1ST QUARTER
# SO THE VOXELIZED SOURCE HAS TO BE SHIFTED OVER HALF ITS DIMENSION IN THE NEGATIVE DIRECTION ON EACH AXIS
/gate/source/pelvis_phantom_source/setPosition -65.165 -65.165 16.216 mm
#/gate/source/pelvis_phantom_source/dump 1
# THE FOLLOWING LINES CHARACTERIZE THE SIZE (NO DIFFERENCE WITH AN ANALYTICAL SOURCE)
# The source emits pairs of particles back-to-back
/gate/source/pelvis_phantom_source/setType backtoback
# The particles emitted by the source are gammas
/gate/source/pelvis_phantom_source/gps/particle gamma
# The gammas have an energy of 511 keV
/gate/source/pelvis_phantom_source/gps/energytype Mono
/gate/source/pelvis_phantom_source/gps/monoenergy 0.511 MeV
# The angular distribution of emission angles is isotropic
/gate/source/pelvis_phantom_source/gps/confine NULL
/gate/source/pelvis_phantom_source/gps/angtype iso
# The parameters below mean that the source emits at all angles along the z axis
/gate/source/pelvis_phantom_source/gps/mintheta 0. deg
/gate/source/pelvis_phantom_source/gps/maxtheta 180. deg
# The parameters below mean that the source emits at all angles in the transverse (XY) directions
/gate/source/pelvis_phantom_source/gps/minphi 0. deg
/gate/source/pelvis_phantom_source/gps/maxphi 360. deg
--------------------------------------------------------------
The above scripts work fine when defining the source as voxel (so without GPU). Does anybody have a similar experience and know how to solve this problem?
Best regards,
Woutjan Branderhorst
Woutjan Branderhorst
[Beschrijving: Beschrijving: Beschrijving: cid:EEA90C32-0871-49FB-AB50-67779C278527 at ds.umcutrecht.nl]
Woutjan Branderhorst, PhD | Post-doctoral researcher | University Medical Center Utrecht
Division Imaging & Oncology | Department of Radiology and Nuclear Medicine | Room number E.02.3.15
w.j.branderhorst at umcutrecht.nl<mailto:w.j.branderhorst at umcutrecht.nl> | T +31 (0) 88 75 50580 | M +31 (0) 642130614
------------------------------------------------------------------------------
De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht
ontvangt, wordt u verzocht de inhoud niet te gebruiken en de afzender direct
te informeren door het bericht te retourneren. Het Universitair Medisch
Centrum Utrecht is een publiekrechtelijke rechtspersoon in de zin van de W.H.W.
(Wet Hoger Onderwijs en Wetenschappelijk Onderzoek) en staat geregistreerd bij
de Kamer van Koophandel voor Midden-Nederland onder nr. 30244197.
Denk s.v.p aan het milieu voor u deze e-mail afdrukt.
------------------------------------------------------------------------------
This message may contain confidential information and is intended exclusively
for the addressee. If you receive this message unintentionally, please do not
use the contents but notify the sender immediately by return e-mail. University
Medical Center Utrecht is a legal person by public law and is registered at
the Chamber of Commerce for Midden-Nederland under no. 30244197.
Please consider the environment before printing this e-mail.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200928/a186d412/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 27860 bytes
Desc: image001.jpg
URL: <http://lists.opengatecollaboration.org/pipermail/gate-users/attachments/20200928/a186d412/attachment-0001.jpg>
More information about the Gate-users
mailing list