pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
992 stars 311 forks source link

cpuinfo: aarch64: add cache configuration details for neoverse-n1/v1/n2 #75

Closed snadampal closed 2 years ago

snadampal commented 2 years ago

Hi @Maratyszcza, I have updated the PR to read sizes from kernel populated cache indices for L2 and L3 caches. I'm falling back to the hardcoded defaults if kernel doesn't provide them.

snadampal commented 2 years ago

Hi @Maratyszcza, please let me know if you have any comments on these new commits. Thank you!

snadampal commented 2 years ago

Please let me know if there are any comments. I'm happy to address them.

snadampal commented 2 years ago

@malfet , Updated the PR with your feedback, please review. Thank you!

snadampal commented 2 years ago

Hi @malfet , separated the dynamic cache query logic. Once this PR is merged, I will initiate the dynamic query one and work with @Maratyszcza . thanks for the feedback so far!