Skip to content

CUDA nvcc compilation error #10

Description

@Char-Aznable

Hi, I got this very simple Taocpp code:

#include <iostream>
#include <tao/tuple/tuple.hpp>

int main(int argc, char* argv[]) {
   
  auto t2 = tao::tuple< int, double, int >( 1, 2, 3 );

  
  tao::get< 0 >( t2 ) = 0;
  tao::get< 1 >( t2 ) = 2;
  tao::get< 2 >( t2 ) = 3;

}

with the dependency: https://github.com/taocpp/tuple.git cloned to ./_deps/taotuple-src. Then I compile it with nvcc 11.4.48 and g++ 9.3.0 by

nvcc -ccbin g++-9 -I_deps/taotuple-src/include -x cu testTuple.cpp -o testTuple

and get this compilation error:

testTuple.cpp(19): error: no instance of overloaded function "tao::get" matches the argument list
            argument types are: (tao::tuple<int, double, int>)

testTuple.cpp(20): error: no instance of overloaded function "tao::get" matches the argument list
            argument types are: (tao::tuple<int, double, int>)

testTuple.cpp(21): error: no instance of overloaded function "tao::get" matches the argument list
            argument types are: (tao::tuple<int, double, int>)

I am using a5f3b87 on the main branch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions