[LLVMbugs] [Bug 14367] New: [NVPTX] Expose DriverInterface setting to subtarget arguments
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 16 13:42:08 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14367
Bug #: 14367
Summary: [NVPTX] Expose DriverInterface setting to subtarget
arguments
Product: new-bugs
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: maemarcus at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
NVPTX backend has an option to switch between NVCL, CUDA and TEST driver
interfaces. But this setting can only be configured over command line:
cl::opt<NVPTX::DrvInterface>
DriverInterface(cl::desc("Choose driver interface:"),
cl::values(
clEnumValN(NVPTX::NVCL, "drvnvcl", "Nvidia OpenCL driver"),
clEnumValN(NVPTX::CUDA, "drvcuda", "Nvidia CUDA driver"),
clEnumValN(NVPTX::TEST, "drvtest", "Plain Test"),
clEnumValEnd),
cl::init(NVPTX::NVCL));
}
At KernelGen we invoke backend using TargetMachine interface, i.e. bypassing
command line and need to use CUDA interface (because it's the one not adding
texmode_independent PTX option). It would be nice to extend the current
target/subtarget argument list to have an ability to select Driver Interface
from there.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list