HiRep 0.1
Loading...
Searching...
No Matches
init_gpu.c File Reference

Functions initialize the GPU for the simulation and print collective information on cluster drivers, necessary software and available hardware. To be logged to simulation outfiles. More...

#include "geometry.h"
#include "libhr_core.h"
#include "io.h"
Include dependency graph for init_gpu.c:

Functions

void select_GPU (input_gpu gpu_var_init)
 Selects GPU(s) depending on whether MPI is enabled or not.
 
int enable_GPU_peer_to_peer_access ()
 Enables peer to peer access for GPUs connected to the same node.
 
void init_gpu (input_gpu gpu_var_init)
 Call this in an init function to setup available graphics card for use. This also logs information on available software and hardware.
 

Detailed Description

Functions initialize the GPU for the simulation and print collective information on cluster drivers, necessary software and available hardware. To be logged to simulation outfiles.

Function Documentation

◆ enable_GPU_peer_to_peer_access()

int enable_GPU_peer_to_peer_access ( )

Enables peer to peer access for GPUs connected to the same node.

Parameters
input_gpuA struct containing information on the current active GPU

◆ init_gpu()

void init_gpu ( input_gpu gpu_var_init)

Call this in an init function to setup available graphics card for use. This also logs information on available software and hardware.

Parameters
input_gpuA struct containing information on the current active GPU

◆ select_GPU()

void select_GPU ( input_gpu gpu_var_init)

Selects GPU(s) depending on whether MPI is enabled or not.

Parameters
input_gpuA struct containing information on the current active GPU