Skip to content

Add a convenient shortcut Device.arch that returns the CC value as a string #729

Description

@leofang

btw I get annoyed having to do a silly string concat like this everywhere. Do you think it'd be better if we have a shortcut Device.arch that returns this string?

Originally posted by @leofang in #720 (comment)

This refers to the usage like this that we have everywhere:

arch="".join(f"{i}"foriindev.compute_capability)

I want to be able to just write

arch: str=dev.arch

Metadata

Metadata

Labels

P0High priority - Must do!cuda.coreEverything related to the cuda.core moduleenhancementAny code-related improvements

Type

No type

Projects

Status
Done

Relationships

None yet

Development

No branches or pull requests

Issue actions