Commit fb715c8b authored by Cianciosa, Mark's avatar Cianciosa, Mark
Browse files

Merge branch 'hot_plasma' into 'main'

Fix cuda device selection index.

See merge request !13
parents 3517b944 02e2256f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ namespace gpu {
///
///  @params[in] index Concurrent index.
//------------------------------------------------------------------------------
        cuda_context() : result_buffer(0), module(0) {
        cuda_context(const size_t index) : result_buffer(0), module(0) {
            check_error(cuDeviceGet(&device, index), "cuDeviceGet");
            check_error(cuDevicePrimaryCtxRetain(&context, device), "cuDevicePrimaryCtxRetain");
            check_error(cuCtxSetCurrent(context), "cuCtxSetCurrent");