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

Cannot compile benchmarks #1067

Open
TomasOberhuber opened this issue Apr 16, 2024 · 3 comments
Open

Cannot compile benchmarks #1067

TomasOberhuber opened this issue Apr 16, 2024 · 3 comments
Labels
🐛 bug Use to report bugs in the issues or fix bugs in a pull request.

Comments

@TomasOberhuber
Copy link

When I try to build gunrock using make all I am getting the following

gunrock/benchmarks/bc_bench.cu(101): error: argument of type "const char **" is incompatible with parameter of type "char **"
      { []() {}(); nvbench::detail::main_initialize(1, args); { []() {}(); { []() {}(); std::vector<std::string> args = nvbench::detail::main_convert_args(1, args); []() {}(); nvbench::option_parser parser; []() {}(); parser.parse(args); []() {}(); nvbench::detail::main_print_preamble(parser); nvbench::detail::main_run_benchmarks(parser); nvbench::detail::main_print_epilogue(parser); nvbench::detail::main_print_results(parser); } []() {}(); } nvbench::detail::main_finalize(); []() {}(); } []() {}(); return 0;;

and many simillar errors. I use Arch linux, cuda_12.4.r12.4/compiler.34097967_0 and g++ (GCC) 13.2.1 20230801.

@TomasOberhuber TomasOberhuber added the 🐛 bug Use to report bugs in the issues or fix bugs in a pull request. label Apr 16, 2024
@RomiRand
Copy link

RomiRand commented Apr 21, 2024

I've the same issue. As a workaround I used an older version of nvbench by entering an commit hash (9e8efa2c88b11a0253c0e7844fe45aee307e36e6) prior to the braking change into the GIT_TAG in cmake/FetchNVBench.cmake

@neoblizz
Copy link
Member

Ah, thank you for the report. You should also be able to fix this by turning this option off:

gunrock/CMakeLists.txt

Lines 261 to 263 in a2e9f04

option(ESSENTIALS_BUILD_BENCHMARKS
"If on, builds Essentials with NVBench benchmarking support."
ON)

Seems like the issue is with nvbench + gunrock.

@porumbes
Copy link
Contributor

As @neoblizz mentioned, this is related to a change in nvbench. I have a fix in the works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Use to report bugs in the issues or fix bugs in a pull request.
Projects
None yet
Development

No branches or pull requests

4 participants