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

Allow compiling with the CUDA 11.4 compiler #1428

Closed
wants to merge 2 commits into from

Conversation

ibaned
Copy link

@ibaned ibaned commented Dec 13, 2022

Hello,

This pull request allows sol2 to be compiled by version 11.4 of the CUDA C++ compiler nvcc. It essentially consists of workarounds for compiler bugs, and I certainly understand the annoyance of changing one's code due to bad compilers, but if this is merged then the mainline version of sol2 will be able to support our High Performance Computing codes with no modifications.

Thank you for any time you spend reviewing this and considering it for merging, please let me know if there is anything I can do to help.

I don't think it should change any behavior, although the construction of a pointer by forwarded arguments change might be worth a look by someone with deeper C++ knowledge.

@@ -1190,7 +1190,7 @@ namespace sol {
}

template <typename T>
decltype(auto) get_usertype(lua_State* L, int index = -lua_size_v<meta::unqualified_t<T>>) {
decltype(auto) get_usertype(lua_State* L, int index = -lua_size_v<meta::unqualified_t<T> >) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these changes should require some clang-format suppressions, otherwise it might be wiped in the next instance ?

@ibaned
Copy link
Author

ibaned commented Dec 20, 2022

For the time being we've decided to go a different route that doesn't use sol2, so I'll close this to not take up developer time.

@ibaned ibaned closed this Dec 20, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants