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

Build error when using compiler wrapper nvcc_wrapper #484

Closed
pkestene opened this issue Mar 7, 2017 · 1 comment
Closed

Build error when using compiler wrapper nvcc_wrapper #484

pkestene opened this issue Mar 7, 2017 · 1 comment

Comments

@pkestene
Copy link
Contributor

pkestene commented Mar 7, 2017

i've already mention this problem on spdlog, issue tracker, for the record here is the problem:

When building fmt with nvcc_wrapper, which wraps nvcc (Nvidia compiler), one gets the following error:

nvcc_wrapper -I/home/pkestene/install/spdlog/github/fmt -O3 -DNDEBUG -std=c++11 -o CMakeFiles/fmt.dir/ostream.cc.o -c /home/pkestene/install/spdlog/github/fmt/fmt/ostream.cc
/home/pkestene/install/spdlog/github/fmt/fmt/ostream.h: In function ‘void fmt::format_arg(fmt::BasicFormatter<Char, ArgFormatter>&, const Char*&, const T&)’:
/home/pkestene/install/spdlog/github/fmt/fmt/ostream.h:103:50: error: ‘ArgFormatter’ is not a template
typedef internal::MakeArg< BasicFormatter > MakeArg;
^
Please notice that when using regular nvcc, the code build fine, but when building with nvcc_wrapper, nvcc_wrapper replaces option "-c" by "-x cu" and goes on as if source code might contain actual cuda code. This wrapper is really useful for using performance portability tool kokkos.

There is a simple fix which consists in replacing ArgFormatter by ArgFormatter_ in template argument.

@vitaut
Copy link
Contributor

vitaut commented Mar 8, 2017

Thank you for reporting this and providing the fix.

@vitaut vitaut closed this as completed Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants