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

add test_gpu_cache_info unit test #58

Open
wants to merge 2 commits into
base: amd-staging
Choose a base branch
from

Conversation

alibukharai
Copy link

Adding a unit test case for amdsmi_get_gpu_cache_info API

Tested the output:

#######################################################################
========> test_cache start <========
 
 
###Test Processor 0, bdf: 0000:03:00.0
 
###Test amdsmi_get_gpu_cache_info
 
  cache_usage['cache_properties'] is: ['DATA_CACHE', 'SIMD_CACHE']
  cache_usage['cache_size'] is: 32
  cache_usage['cache_level'] is: 1
  cache_usage['max_num_cu_shared'] is: 10
  cache_usage['num_cache_instance'] is: 96
  cache_usage['cache_properties'] is: ['INST_CACHE', 'SIMD_CACHE']
  cache_usage['cache_size'] is: 32
  cache_usage['cache_level'] is: 1
  cache_usage['max_num_cu_shared'] is: 2
  cache_usage['num_cache_instance'] is: 30
  cache_usage['cache_properties'] is: ['DATA_CACHE', 'SIMD_CACHE']
  cache_usage['cache_size'] is: 4096
  cache_usage['cache_level'] is: 2
  cache_usage['max_num_cu_shared'] is: 60
  cache_usage['num_cache_instance'] is: 1
  cache_usage['cache_properties'] is: ['DATA_CACHE', 'SIMD_CACHE']
  cache_usage['cache_size'] is: 65536
  cache_usage['cache_level'] is: 3
  cache_usage['max_num_cu_shared'] is: 60
  cache_usage['num_cache_instance'] is: 1
 
 
========> test_cache end <========
#######################################################################

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.

1 participant