[PATCH] D42642: [CUDA] Detect installation in PATH

Alexandre Ganea via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 25 10:23:12 PDT 2019


aganea added a comment.
Herald added a project: LLVM.

Just a quick heads-up - the `cuda-detect-path.cu` test fails on WSL/Ubuntu 18.04:

  aganea at MTL-BJ842:/mnt/f/svn/buildWSL$ /usr/bin/python3.6 bin/llvm-lit -vv ../clang/test/Driver/cuda-detect-path.cu
  llvm-lit: /mnt/f/svn/llvm/utils/lit/lit/llvm/config.py:341: note: using clang: /mnt/f/svn/buildWSL/bin/clang
  -- Testing: 1 tests, single process --
  FAIL: Clang :: Driver/cuda-detect-path.cu (1 of 1)
  ******************** TEST 'Clang :: Driver/cuda-detect-path.cu' FAILED ********************
  
  (output chopped)
  
  + env PATH=/mnt/f/svn/clang/test/Driver/Inputs/CUDA-symlinks/usr/bin /mnt/f/svn/buildWSL/bin/clang -v --target=i386-unknown-linux --sysroot=/mnt/f/svn/clang/test/Driver/no-cuda-there
  + /mnt/f/svn/buildWSL/bin/FileCheck /mnt/f/svn/clang/test/Driver/cuda-detect-path.cu --check-prefix SYMLINKS
  /mnt/f/svn/clang/test/Driver/cuda-detect-path.cu:82:14: error: SYMLINKS: expected string not found in input
  // SYMLINKS: Found CUDA installation: {{.*}}/Inputs/CUDA-symlinks/opt/cuda
               ^
  <stdin>:1:1: note: scanning from here
  clang version 9.0.0 (trunk)
  ^
  <stdin>:4:1: note: possible intended match here
  InstalledDir: /mnt/f/svn/buildWSL/bin
  ^
  
  aganea at MTL-BJ842:/mnt/f/svn/buildWSL$ env PATH=/mnt/f/svn/clang/test/Driver/Inputs/CUDA-symlinks/usr/bin /mnt/f/svn/buildWSL/bin/clang -v --target=i386-unknown-linux --sysroot=/mnt/f/svn/clang/test/Driver/no-cuda-there
  clang version 9.0.0 (trunk)
  Target: i386-unknown-linux
  Thread model: posix
  InstalledDir: /mnt/f/svn/buildWSL/bin
  aganea at MTL-BJ842:/mnt/f/svn/buildWSL$ ls -l /mnt/f/svn/clang/test/Driver/Inputs/CUDA-symlinks/usr/bin
  total 0
  -rwxrwxrwx 1 aganea aganea 29 Feb  1  2018 ptxas


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D42642/new/

https://reviews.llvm.org/D42642





More information about the cfe-commits mailing list