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] pcl_find_cuda selects bad compilers #3505

Open
kunaltyagi opened this issue Dec 11, 2019 · 1 comment
Open

[CUDA] pcl_find_cuda selects bad compilers #3505

kunaltyagi opened this issue Dec 11, 2019 · 1 comment
Labels
kind: bug Type of issue module: cmake module: cuda needs: testing Specify why not closed/merged yet

Comments

@kunaltyagi
Copy link
Member

kunaltyagi commented Dec 11, 2019

Your Environment

  • Operating System and version: Linux
  • Compiler: GCC 9.2, clang 9.0, nvcc 10.1 (gcc 8.3)
  • PCL Version: master/HEAD

Context

While creating a build from scratch, the compilers selected are based on system cc and c++ if CC and CXX are not set (which makes sense)

However, nvcc has a restriction on what compilers can be used with it and as a result we get compilation errors related to missing compiler intrinsic/standard features.

Expected Behavior

If not outright correct detection, a warning/error if CUDA modules are selected and bad compiler versions are used

Current Behavior

Error is known only on compilation. Sometimes, the error is straightforward:
nvcc only works with clang 8 but sometimes, it complains of missing compiler instrinic variables like __is_constant_evaluated

Possible Solution

Modify pcl_find_cuda.cmake to do magic detection and sane warnings

Temporary solution for normal people

Ensure that last line in bashrc is export PATH=$CUDA_PATH/bin:$PATH

@stale
Copy link

stale bot commented May 19, 2020

Marking this as stale due to 30 days of inactivity. It will be closed in 7 days if no further activity occurs.

@stale stale bot added the status: stale label May 19, 2020
@kunaltyagi kunaltyagi added kind: bug Type of issue needs: testing Specify why not closed/merged yet labels May 19, 2020
@stale stale bot removed the status: stale label May 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Type of issue module: cmake module: cuda needs: testing Specify why not closed/merged yet
Projects
None yet
Development

No branches or pull requests

1 participant