Skip to content

Conversation

micahcc
Copy link

@micahcc micahcc commented Aug 7, 2025

  • Add function to get device properties
  • There was one breaking change in the cudaDeviceProps struct between cuda 10 and 11 (they inserted persistingL2CacheMaxSize), but other than that they have only added.
  • Its nice to have the type defined in rust, because its easier for users, but it may be worth generating the type with bindgen if it gets changed again.

Different versions of cudaDeviceProps struct:
2025-08-26T11-29-49

@gerwin3
Copy link
Contributor

gerwin3 commented Aug 27, 2025

Oh so the version in your PR, to which version does it correspond in CUDA exactly?

EDIT: @micahcc And could you also add the padding to it? I think technically without it the struct may be incompatible due to alignment. Also a static check on the size of the struct would be nice :)

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.

2 participants