-
-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
ms-windowsRelated to the Microsoft Windows operating systemRelated to the Microsoft Windows operating systemresolved-on-development
Description
File cuda/rtc.hpp fails to compile.
Minimal example:
#include <iostream>
#include <cuda/rtc.hpp>
using namespace std;
int main() {
cout << "Hello world!" << endl;
return 0;
}Current output:
63 compilation errors similar to:
C:\local\cuda-api-wrappers\src\cuda\rtc/compilation_options.hpp(585): error : more than one operator "<<" matches these operands:
function template "MarshalTarget &cuda::rtc::operator<<(MarshalTarget &, cuda::rtc::detail_::opt_start_t<Delimiter> &)"
(489): here
function template "cuda::rtc::marshalled_options_t &cuda::rtc::marshalled_options_t::operator<<(T &&)"
C:\local\cuda-api-wrappers\src\cuda\rtc\detail/marshalled_options.hpp(53): here
operand types are: cuda::rtc::marshalled_options_t << cuda::rtc::detail_::opt_start_t<void (*)()>
detected during:
instantiation of "void cuda::rtc::process(const cuda::rtc::compilation_options_t<cuda::ptx> &, MarshalTarget &, Delimiter, __nv_bool) [with MarshalTarget=cuda::rtc::marshalled_options_t, Delimiter=void (*)()]"
(689): here
instantiation of "cuda::rtc::marshalled_options_t cuda::rtc::marshal(const cuda::rtc::compilation_options_t<Kind> &) [with Kind=cuda::ptx]"
C:\local\cuda-api-wrappers\src\cuda\rtc/program.hpp(567): here
Expected output:
The code should compile and output:
Hello world!
Metadata
Metadata
Assignees
Labels
ms-windowsRelated to the Microsoft Windows operating systemRelated to the Microsoft Windows operating systemresolved-on-development