Example #1
0
func GetDriverVersion() (string, error) {
	var driver [szDriver]C.char

	err := nvmlErr(C.nvmlSystemGetDriverVersion(&driver[0], szDriver))
	return C.GoString(&driver[0]), err
}
Example #2
0
func systemGetDriverVersion() (string, error) {
	var driver [szDriver]C.char

	r := C.nvmlSystemGetDriverVersion(&driver[0], szDriver)
	return C.GoString(&driver[0]), errorString(r)
}