CMake, CUDA 10.2, Ubuntu 20.04: No Configuration/Target when adding a CUDA executable

已回答

Hi guys,

Its something that used to work in CLion 2019.2 on my Ubuntu 18.04 installation but not with CLion 2020.1 on a very fresh Ubuntu 20.04 installation: add_executable() with ..cu files!

It seems as soon as there is a single add_executable() operating on a .cu file none, not even non-CUDA configurations will be set up in the IDE. CMake itself is fine with everything though. I can compile the project with ease running from the command line.

You can easily replicate this by setting up a new  "CUDA Executable" project in the IDE on a fresh Ubuntu 20.04 system.

This does justify a bug report right? Any workarounds?

Further experiments: I tried downgrading to CLion 2019.3 on my Ubuntu 20.04 which works. Interestingly it also works with Ubuntu 18.04 and CLion 2020.1.

0

Hello!

Is it CLion 2020.1 or 2020.1.1?

0

Asking because there is an issue in CLion 2020.1.1 - https://youtrack.jetbrains.com/issue/CPP-20178 

0
Avatar
Permanently deleted user

Thanks,

I didn't find that issue on YouTrack. It's an issue with CLion 2020.1.1 on Ubuntu 20.04 but not with CLion 2020.1.1 on Ubuntu 18.04. Maybe I should contribute to the discussion over there.

0

The fix for https://youtrack.jetbrains.com/issue/CPP-20178 will be included in CLion 2020.1.2 which is expected to be released around the beginning of June.

0
Avatar
Permanently deleted user

Oh, thanks!
Nice. Looking forward to it. (totally didn't see that the issue was resolved)

0

If for some reason the update doesn't help you, please let us know here or in the issue.

0

请先登录再写评论。