GOMC - GPU Optimized Monte Carlo
Current Release: 2.31 (5/21/2018)
Building GOMC on GNU/Linux, macOS, or Cygwin:
- Clone or download our code from GitHub:
git clone https://github.com/GOMC-WSU/GOMC.git
- Go into the GOMC directory:
- Give execution permission:
chmod u+x metamake.sh
- Run metamake file:
- Step 4 should generate all the executables in
You can set the number of the threads using the +pN argument, where N is the number of threads. For example:
./GOMC_<CPU|GPU>_XXXX +p4 in.conf
Which will run 4 threads and reads input file "in.conf".
NOTES: Building GOMC requires cmake, available at http://www.cmake.org and in most Linux package repositories (as cmake). If you wish to utilize NVIDIA graphic cards you will need to install NVIDIA toolkit before compiling. The metamake file will automatically detect the location of CUDA installation. (More info in Manual)
BUILDING GOMC ON WINDOWS:
- Open the Windows-compatible CMake GUI.
- Set the Source Folder to the GOMC root folder.
- Set the build Folder to your Build Folder.
- Click configure, select your compiler/environment
- Wait for CMake to finish the configuration.
- Click configure again and click generate.
- Open the CMake-generated project/solution etc. to the desired IDE (e.g Visual Studio).
- Using the solution in the IDE of choice build GOMC per the IDE's standard release compilation/executable generation methods.
NOTES: You can also use CMake from the Windows command line if its directory is added to the PATH environment variable.