9#ifndef LLVM_CLANG_DRIVER_CUDAINSTALLATIONDETECTOR_H
10#define LLVM_CLANG_DRIVER_CUDAINSTALLATIONDETECTOR_H
25 std::string InstallPath;
27 std::string LibDevicePath;
28 std::string IncludePath;
29 llvm::StringMap<std::string> LibDeviceMap;
37 const llvm::opt::ArgList &Args);
40 llvm::opt::ArgStringList &CC1Args)
const;
51 void print(raw_ostream &OS)
const;
68 return LibDeviceMap.lookup(Gpu);
void AddCudaIncludeArgs(const llvm::opt::ArgList &DriverArgs, llvm::opt::ArgStringList &CC1Args) const
CudaInstallationDetector(const Driver &D, const llvm::Triple &HostTriple, const llvm::opt::ArgList &Args)
StringRef getLibDevicePath() const
Get the detected Cuda device library path.
CudaVersion version() const
Get the detected Cuda install's version.
StringRef getInstallPath() const
Get the detected Cuda installation path.
std::string getLibDeviceFile(StringRef Gpu) const
Get libdevice file for given architecture.
StringRef getBinPath() const
Get the detected path to Cuda's bin directory.
void WarnIfUnsupportedVersion() const
void CheckCudaVersionSupportsArch(OffloadArch Arch) const
Emit an error if Version does not support the given Arch.
void print(raw_ostream &OS) const
Print information about the detected CUDA installation.
StringRef getIncludePath() const
Get the detected Cuda Include path.
bool isValid() const
Check whether we detected a valid Cuda install.
Driver - Encapsulate logic for constructing compilation processes from a set of gcc-driver-like comma...
The JSON file list parser is used to communicate input to InstallAPI.