ctx_props = _get_props(name)
ctx_props["dev"] = dev
if dev.startswith("cuda"):
if "cudnn_version" not in ctx_props:
try:
ctx_props["cudnn_version"] = dnn.version()
// 5200 should not print warning with cudnn 5.1 final.
After Change
// This is for the C headers API
if pygpu.gpuarray.api_version()[0] < 0:
raise ValueError("Your installed libgpuarray is too old, please update")
if init_dev.dnn_version is None and dev.startswith("cuda"):
try:
init_dev.dnn_version = dnn.version()
// 5200 should not print warning with cudnn 5.1 final.