Function opensn::UseBoundDevice
Defined in File device_binding.h
Function Documentation
-
void opensn::UseBoundDevice()
Makes the GPU that BindDevice selected the current device of the calling thread.
The current device is per thread, so every thread other than the one that called BindDevice calls this before doing GPU work. Does nothing if BindDevice selected no GPU.