Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA nvcc compilation error #10

Open
Char-Aznable opened this issue Sep 4, 2021 · 7 comments
Open

CUDA nvcc compilation error #10

Char-Aznable opened this issue Sep 4, 2021 · 7 comments

Comments

@Char-Aznable
Copy link

Char-Aznable commented Sep 4, 2021

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.

@d-frey
Copy link
Member

d-frey commented Sep 4, 2021

Since I'm not using CUDA myself, there isn't much that I can do. You could try to update to the latest commit, see if that helps. Or maybe @allisonvacanti might help? She developed the original PR for CUDA support. Allison: Let me know if it is OK for you if I tag you when CUDA-related issues with taocpp/tuple come up. If not, I will stop doing so.

@Char-Aznable
Copy link
Author

The problem persists in the latest commit a5f3b87

@DarthRubik
Copy link
Contributor

@d-frey It appears maybe somebody fixed it in this fork?:

https://github.com/maudoin/tuple

@d-frey
Copy link
Member

d-frey commented Sep 6, 2021

@Char-Aznable Could you send the complete output from the compiler, please?

@d-frey
Copy link
Member

d-frey commented Sep 6, 2021

@DarthRubik That is #6, where I hoped that my patch also fixed the issue. Apparently that is not the case, so I'll see what I can do. Can you also reproduce the error? If so, I'd like to know which version of GCC, nvcc, etc. you are using and also the complete error message from the compiler with all the details (candidates, why rejected, etc.)

@DarthRubik
Copy link
Contributor

@d-frey I do not have a CUDA environment set up and I cannot reproduce the error

@Char-Aznable
Copy link
Author

Char-Aznable commented Sep 9, 2021

Could you send the complete output from the compiler, please?

Those I posted were all I got from it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants