Exemple #1
0
func DriverGetVersion() (driverVersion, err int) {
	var cDriverVersion, cErr C.int
	cErr = C.int(C.cuDriverGetVersion(&cDriverVersion))
	driverVersion = int(cDriverVersion)
	err = int(cErr)
	return
}
Exemple #2
0
// Returns the CUDA driver version.
func Version() int {
	var version C.int
	err := Result(C.cuDriverGetVersion(&version))
	if err != SUCCESS {
		panic(err)
	}
	return int(version)
}