projects / phoronix-test-suite.git / commitdiff
Build Results
 
Summary

Description: Phoronix Test Suite open-source benchmarking development
Last Change: Tue 5/21/13 15:49

Recent Commits
Time
Signed-Off By
Description
Commit Diff
Tue 5/21/13 15:49
Michael Larabel  
Phoronix Test Suite... 
Fri 5/17/13 22:52
Michael Larabel  
phodevi: Report CPU... 
Wed 5/15/13 21:50
Michael Larabel  
Phoronix Test Suite... 
Wed 5/15/13 21:39
Michael Larabel  
pts-core: DragonFlyBSD... 
Wed 5/15/13 15:47
Michael Larabel  
pts-core: Updates from... 
Wed 5/15/13 15:43
Michael Larabel  
 
 
> --git a/pts-core/objects/phodevi/components/phodevi_system.php b/pts-core/objects/phodevi/components/phodevi_system.php
index 67346bf
..22b726f 100644
--- a/pts-core/objects/phodevi/components/phodevi_system.php
+++ b/pts-core/objects/phodevi/components/phodevi_system.php
@@ -670,10 +670,11 @@ class phodevi_system extends phodevi_device_interface
             
}
         }

-        if(
pts_client::executable_in_path('nvcc'))
+        if((
$nvcc pts_client::executable_in_path('nvcc')) || is_executable(($nvcc '/usr/local/cuda/bin/nvcc')))
         {
+            
// Check outside of PATH too since by default the CUDA Toolkit goes to '/usr/local/cuda/' and relies upon user to update system
             // NVIDIA CUDA Compiler Driver
-            $nvcc shell_exec('nvcc --version 2>&1');
+            
$nvcc shell_exec($nvcc ' --version 2>&1');
             if((
$s strpos($nvcc'release ')) !== false)
             {
                 
$nvcc str_replace(array(','), nullsubstr($nvcc, ($s 8)));
<
 
Phoronix.com
Linux Driver Forums
Copyright © 2013 by Phoronix Media