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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs