The setters for the variables Sets the mode. It is recommended that you don't change the mode halfway into the program since that may cause allocation of pinned memory being freed in a non-pinned way, which may cause problems - I haven't verified it personally but better to note it here in the header file.
| 146 | // freed in a non-pinned way, which may cause problems - I haven't verified |
| 147 | // it personally but better to note it here in the header file. |
| 148 | inline static void set_mode(Brew mode) { Get().mode_ = mode; } |
| 149 | // Sets the random seed of both boost and curand |
| 150 | static void set_random_seed(const unsigned int seed); |
| 151 | // Sets the device. Since we have cublas and curand stuff, set device also |