Mercurial > hg > graal-jvmci-8
diff src/os_gpu/linux_ptx/vm/gpu_linux.cpp @ 11292:5040ec3ff3aa
Defer PTX on Mac probe to the CUDA driver initialization call
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Mon, 12 Aug 2013 15:52:26 -0400 |
parents | d55f24eac4b1 |
children | 49bb1bc983c6 |
line wrap: on
line diff
--- a/src/os_gpu/linux_ptx/vm/gpu_linux.cpp Mon Aug 12 13:12:14 2013 -0400 +++ b/src/os_gpu/linux_ptx/vm/gpu_linux.cpp Mon Aug 12 15:52:26 2013 -0400 @@ -43,11 +43,11 @@ bool gpu::Linux::probe_gpu() { /* - Open /proc/bus/pci/devices to look for the first CUDA enabled - device. For now, finding the first CUDA device. Will need to - revisit this wo support execution on multiple CUDA devices if - they exist. - */ + * Open /proc/bus/pci/devices to look for the first CUDA enabled + * device. For now, finding the first CUDA device. Will need to + * revisit this to support execution on multiple CUDA devices if + * they exist. + */ FILE *pci_devices = fopen("/proc/bus/pci/devices", "r"); char contents[4096]; unsigned int bus_num_devfn_ign;