Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Add simple fix for MSVC name mangling#151

Open
Ruochun wants to merge 1 commit intoNVIDIA:master from
Ruochun:master
Open

Add simple fix for MSVC name mangling #151
Ruochun wants to merge 1 commit intoNVIDIA:master from
Ruochun:master

Conversation

@Ruochun
Copy link

@Ruochun Ruochun commented Nov 2, 2025

I don't know if I am the only person who encounters this, but when I use Jitify in my project (https://github.com/projectchrono/DEM-Engine), on Windows with MSVC, the jit-ed kernel name mangling was never right, until I added this basically one-line fix. I hope my fix can be incorporated, but if the problem was due to the fact that I incorrectly used Jitify on Windows, kindly let me know, too.

Platform compatibility improvement:

  • Modified the type_reflection struct in jitify.hpp to use typeid(...).name() directly on MSVC, while retaining the use of demangle_native_type for other platforms. This addresses differences in how type names are handled between compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /