[llvm-bugs] [Bug 46664] New: clang searches filesystem for CUDA installation when compiling C/C++ code
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Thu Jul  9 14:08:23 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=46664
            Bug ID: 46664
           Summary: clang searches filesystem for CUDA installation when
                    compiling C/C++ code
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: CUDA
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tstellar at redhat.com
                CC: llvm-bugs at lists.llvm.org
To reproduce, install strace and run:
echo "int main(){}" | strace ./bin/clang -x c -o /dev/null -
One my system, I get, 10 access() syscalls looking for ptxas, and 4 stat()
syscalls looking for a cuda install.
It would be nice it we could eliminate the filesystem searches, since the
aren't necessary, and can reduce compile time performance especially on systems
with slow or network mounted filesystems.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200709/506f12c2/attachment.html>
    
    
More information about the llvm-bugs
mailing list