Geant4 not working properly on Linux

Hi,
I have installed Geant4 on windows using WSL2, and it works perfectly. I also installed it on Linux Mint 21.3 and tried to run it, however it is lags my entire computer and doesn’t work properly.

Geant4 Version: 11.2.2
Operating System: Linux Mint 21.3
Compiler/Version: g++ 11.4.0
CMake Version: 3.22.1


Thank you very much

I’m sorry, but it’s impossible to help here without more information. How did you install Geant4 on Linux (e.g. what options did you build it with)? What application are you running (an example or your own code) and is it the same as on Windows? How are you running the application (batch or interactive) and with what particles/energies? How is the lag observed, is it consuming CPU or Memory? What’s the specification of the Linux machine in CPU/RAM?

I installed it from source (from Download Geant4-11.2.2 - Geant4). While configure the CMake, I set the install prefix to a local directory, and set multithreading off. I set the geant4_install_data on, and I also enabled geant4_use_qt and geant4_use_raytracer_x11.

The problem occurs even when I am running the same code I ran on Windows, on Linux.
I am running the application interactive.
The Linux machine has the same specifications as the Windows machine (same computer with both operating systems), so CPU: AMD Ryzen 5 3500U, GPU: AMD Radeon, RAM: ~18GB. The program does not change CPU or RAM usage much.

If the program is itself is not changing the system’s CPU/RAM usage much, then how is it lagging the computer? What behaviour exactly do you observe when running, and “lagging”? How much CPU and RAM does the application itself actually take whilst running?

If you can share the application code, that may help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.