From 483f584e1c0fe18d8a923c394c39aefab064df01 Mon Sep 17 00:00:00 2001 From: Jan Kieseler Date: Thu, 22 Aug 2024 16:05:56 +0200 Subject: [PATCH] cuda check and better comment --- docker/check_cuda_torch.py | 1 + src/PrimaryGeneratorAction.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 docker/check_cuda_torch.py diff --git a/docker/check_cuda_torch.py b/docker/check_cuda_torch.py old mode 100644 new mode 100755 index af47470..8ef2ce3 --- a/docker/check_cuda_torch.py +++ b/docker/check_cuda_torch.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python ''' little script to check if cuda is available in pytorch and working organised as a check that raises an exception if cuda is not available, and data cannot be moved to the gpu diff --git a/src/PrimaryGeneratorAction.cc b/src/PrimaryGeneratorAction.cc index 65e880a..9d6d12a 100644 --- a/src/PrimaryGeneratorAction.cc +++ b/src/PrimaryGeneratorAction.cc @@ -121,7 +121,7 @@ void PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent) G4Exception("PrimaryGeneratorAction::GeneratePrimaries()", "MyCode0002", JustWarning, msg); } - //draw particle position from a unit distribution in x-y with +-5 cm around the center + //draw particle position from a unit distribution in x-y with +-7.5 cm around the center G4double x = -1000; G4double y = -1000; G4double x_width = 15;