clang
3.9.0
|
#include <ToolChains.h>
Public Member Functions | |
CudaInstallationDetector (const Driver &D) | |
void | init (const llvm::Triple &TargetTriple, const llvm::opt::ArgList &Args) |
void | CheckCudaVersionSupportsArch (CudaArch Arch) const |
Emit an error if Version does not support the given Arch. More... | |
bool | isValid () const |
Check whether we detected a valid Cuda install. More... | |
void | print (raw_ostream &OS) const |
Print information about the detected CUDA installation. More... | |
CudaVersion | version () const |
Get the deteced Cuda install's version. More... | |
StringRef | getInstallPath () const |
Get the detected Cuda installation path. More... | |
StringRef | getBinPath () const |
Get the detected path to Cuda's bin directory. More... | |
StringRef | getIncludePath () const |
Get the detected Cuda Include path. More... | |
StringRef | getLibPath () const |
Get the detected Cuda library path. More... | |
StringRef | getLibDevicePath () const |
Get the detected Cuda device library path. More... | |
std::string | getLibDeviceFile (StringRef Gpu) const |
Get libdevice file for given architecture. More... | |
Definition at line 163 of file ToolChains.h.
|
inline |
Definition at line 180 of file ToolChains.h.
void Generic_GCC::CudaInstallationDetector::CheckCudaVersionSupportsArch | ( | CudaArch | Arch | ) | const |
Emit an error if Version does not support the given Arch.
If either Version or Arch is unknown, does not emit an error. Emits at most one error per Arch.
Definition at line 1804 of file ToolChains.cpp.
References clang::CudaArchToString(), clang::CudaVersionToString(), clang::MinVersionForCudaArch(), and clang::UNKNOWN.
Referenced by clang::driver::toolchains::CudaToolChain::AddCudaIncludeArgs().
|
inline |
Get the detected path to Cuda's bin directory.
Definition at line 199 of file ToolChains.h.
Referenced by clang::driver::toolchains::CudaToolChain::CudaToolChain().
|
inline |
Get the detected Cuda Include path.
Definition at line 201 of file ToolChains.h.
Referenced by clang::driver::toolchains::Linux::AddCudaIncludeArgs().
|
inline |
Get the detected Cuda installation path.
Definition at line 197 of file ToolChains.h.
|
inline |
Get libdevice file for given architecture.
Definition at line 207 of file ToolChains.h.
Referenced by clang::driver::toolchains::CudaToolChain::addClangTargetOptions().
|
inline |
Get the detected Cuda device library path.
Definition at line 205 of file ToolChains.h.
|
inline |
Get the detected Cuda library path.
Definition at line 203 of file ToolChains.h.
void Generic_GCC::CudaInstallationDetector::init | ( | const llvm::Triple & | TargetTriple, |
const llvm::opt::ArgList & | Args | ||
) |
Definition at line 1727 of file ToolChains.cpp.
References clang::CUDA_70, FileName, FilePath, and ParseCudaVersionFile().
Referenced by clang::driver::toolchains::Linux::Linux().
|
inline |
Check whether we detected a valid Cuda install.
Definition at line 190 of file ToolChains.h.
Referenced by clang::driver::toolchains::Linux::AddCudaIncludeArgs(), and clang::driver::toolchains::CudaToolChain::CudaToolChain().
void Generic_GCC::CudaInstallationDetector::print | ( | raw_ostream & | OS | ) | const |
Print information about the detected CUDA installation.
Definition at line 1819 of file ToolChains.cpp.
References clang::CudaVersionToString().
Referenced by clang::driver::toolchains::Generic_GCC::printVerboseInfo().
|
inline |
Get the deteced Cuda install's version.
Definition at line 195 of file ToolChains.h.