Граф коммитов

274 Коммитов

Автор SHA1 Сообщение Дата
Suma Hegde b9b495e486 Renamed API amdsmi_dev_set_clk_freq
It is changed to amdsmi_set_clk_freq

grep -rli 'amdsmi_dev_set_clk_freq' * | xargs -i@ sed -i
's/amdsmi_dev_set_clk_freq/amdsmi_set_clk_freq/g' @

Change-Id: I4cb623791c4570d144b4bf88e9c5f2ee5943527e
2023-05-11 10:46:50 -04:00
Suma Hegde 40a1904ef9 Renamed API amdsmi_dev_set_perf_level
amdsmi_dev_set_perf_level -> amdsmi_set_gpu_perf_level
amdsmi_dev_set_perf_level_v1 -> amdsmi_set_gpu_perf_level_v1

grep -rli 'amdsmi_dev_set_perf_level' * | xargs -i@ sed -i
's/amdsmi_dev_set_perf_level/amdsmi_set_gpu_perf_level/g' @

Change-Id: Ib37766938c9a808d971a49a24979ada8919a329e
2023-05-11 10:46:27 -04:00
Suma Hegde 56aa8059f8 Renamed API amdsmi_dev_get_gpu_clk_freq
It is renamed to amdsmi_get_clk_freq

grep -rli 'amdsmi_dev_get_gpu_clk_freq' * | xargs -i@ sed -i
's/amdsmi_dev_get_gpu_clk_freq/amdsmi_get_clk_freq/g' @

Change-Id: Ia12dd1282ab501f17667cf9f1f9b7284c2648198
2023-05-11 10:45:55 -04:00
Deepak Mewar 0d5be2949b Renamed API amdsmi_set_perf_determinism_mode to
amdsmi_set_gpu_perf_determinism_mode

grep -rli 'amdsmi_set_perf_determinism_mode' * | xargs -i@ sed -i
's/amdsmi_set_perf_determinism_mode/amdsmi_set_gpu_perf_determinism_mode/g' @

Change-Id: I81b3a9738d3063d49ee2ed09a4223ee174d8d904
2023-05-11 10:45:27 -04:00
Deepak Mewar 3ce4fa3eec Renamed API amdsmi_dev_get_perf_level to
amdsmi_get_gpu_perf_level

grep -rli 'amdsmi_dev_get_perf_level' * | xargs -i@ sed -i
's/amdsmi_dev_get_perf_level/amdsmi_get_gpu_perf_level/g' @

Change-Id: I03ba35c943cf4e6182c910cc90c5f979b6dc13ee
2023-05-11 10:45:17 -04:00
Deepak Mewar 575856eeee Renamed API amdsmi_dev_get_busy_percent to
amdsmi_get_busy_percent

grep -rli 'amdsmi_dev_get_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_busy_percent/amdsmi_get_busy_percent/g' @

Change-Id: I02ff8f86d2e7a6c38e7f56d40a07b27e90835152
2023-05-11 10:45:08 -04:00
Deepak Mewar 8d7b6ee5d1 Renamed API amdsmi_dev_set_fan_speed to
amdsmi_set_gpu_fan_speed

grep -rli 'amdsmi_dev_set_fan_speed' * | xargs -i@ sed -i
's/amdsmi_dev_set_fan_speed/amdsmi_set_gpu_fan_speed/g' @

Change-Id: I27a321a0e1182b4cc94d18cff5245df67c4fee31
2023-05-11 10:44:50 -04:00
Deepak Mewar 7c82c5ec79 Renamed API amdsmi_dev_reset_fan to
amdsmi_reset_gpu_fan

grep -rli 'amdsmi_dev_reset_fan' * | xargs -i@ sed -i
's/amdsmi_dev_reset_fan/amdsmi_reset_gpu_fan/g' @

Change-Id: Ic9d2ed404b4ed2d6973286e6f76b732199c1b687
2023-05-11 10:44:40 -04:00
Deepak Mewar 1358f3cfd0 Renamed API amdsmi_dev_get_volt_metric to
amdsmi_get_gpu_volt_metric

grep -rli 'amdsmi_dev_get_volt_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_volt_metric/amdsmi_get_gpu_volt_metric/g' @

Change-Id: Icd34fa435d067815d83b61e84b70b1d78105f8b6
2023-05-11 10:44:28 -04:00
Deepak Mewar d3289258b4 Renamed API amdsmi_dev_get_temp_metric to
amdsmi_get_temp_metric

grep -rli 'amdsmi_dev_get_temp_metric' * | xargs -i@ sed -i
's/amdsmi_dev_get_temp_metric/amdsmi_get_temp_metric/g' @

Change-Id: I4a342f9d1c5183afdeac67506fef73e895911283
2023-05-11 10:44:16 -04:00
Deepak Mewar 3b62d7629f Renamed APIs
1) amdsmi_dev_get_fan_speed to amdsmi_get_gpu_fan_speed
2) amdsmi_dev_get_fan_speed_max to amdsmi_get_gpu_fan_speed_max

grep -rli 'amdsmi_dev_get_fan_speed' * | xargs -i@ sed -i
's/amdsmi_dev_get_fan_speed/amdsmi_get_gpu_fan_speed/g' @

Change-Id: I74e93885fe3335bbde8294e3b0863256bb044fcb
2023-05-11 10:44:01 -04:00
Deepak Mewar 825b12a437 Renamed API amdsmi_dev_get_fan_rpms to
amdsmi_get_gpu_fan_rpms

grep -rli 'amdsmi_dev_get_fan_rpms' * | xargs -i@ sed -i
's/amdsmi_dev_get_fan_rpms/amdsmi_get_gpu_fan_rpms/g' @

Change-Id: Iaedac65cba608c3661dbf80399b236c7aa33dac1
2023-05-11 10:43:46 -04:00
Deepak Mewar a248959ad9 Renamed API amdsmi_dev_get_memory_reserved_pages
to amdsmi_get_gpu_memory_reserved_pages

grep -rli 'amdsmi_dev_get_memory_reserved_pages' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_reserved_pages/amdsmi_get_gpu_memory_reserved_pages/g' @

Change-Id: I1b17fe4540f39c820b9e3e8102440cc91a27ee16
2023-05-11 10:43:25 -04:00
Deepak Mewar ed45afc512 Renamed API amdsmi_dev_get_memory_busy_percent to
amdsmi_get_gpu_memory_busy_percent

grep -rli 'amdsmi_dev_get_memory_busy_percent' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_busy_percent/amdsmi_get_gpu_memory_busy_percent/g' @

Change-Id: I379d8a31074635cd086c1bb0d0e231d3b352725c
2023-05-11 10:43:13 -04:00
Deepak Mewar 84613dcf1d Renamed API amdsmi_dev_get_memory_usage to
amdsmi_get_gpu_memory_usage

grep -rli 'amdsmi_dev_get_memory_usage' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_usage/amdsmi_get_gpu_memory_usage/g' @

Change-Id: I04f44c7d7c06490d25f136c77ba545c3010a2e18
2023-05-11 10:42:41 -04:00
Deepak Mewar cdad242947 Renamed API amdsmi_dev_get_memory_total to
amdsmi_get_gpu_memory_total

grep -rli 'amdsmi_dev_get_memory_total' * | xargs -i@ sed -i
's/amdsmi_dev_get_memory_total/amdsmi_get_gpu_memory_total/g' @

Change-Id: I06dc20f4bf783c0ee824a6d4b4f7162166c598cb
2023-05-11 10:42:26 -04:00
Deepak Mewar dec22a9b44 Renamed API amdsmi_dev_set_power_profile to
amdsmi_set_gpu_power_profile

grep -rli 'amdsmi_dev_set_power_profile' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_profile/amdsmi_set_gpu_power_profile/g' @

Change-Id: I10d7ee19fd86c11bbb7deafefb37df92e78aa2a3
2023-05-11 10:42:06 -04:00
Deepak Mewar 757765a1e3 Renamed API amdsmi_dev_set_power_cap to
amdsmi_set_power_cap

grep -rli 'amdsmi_dev_set_power_cap' * | xargs -i@ sed -i
's/amdsmi_dev_set_power_cap/amdsmi_set_power_cap/g' @

Change-Id: I226f90f0fce12ea4f832a2ea46c3dc60f6e9fe23
2023-05-11 10:41:48 -04:00
Deepak Mewar 258a21790b Renamed API amdsmi_dev_get_energy_count to
amdsmi_get_energy_count

grep -rli 'amdsmi_dev_get_energy_count' * | xargs -i@ sed -i
's/amdsmi_dev_get_energy_count/amdsmi_get_energy_count/g' @

Change-Id: Ifba096376069da3b82d0de3e031cc2adb9cc2f7f
2023-05-11 10:41:27 -04:00
Deepak Mewar 394a1b4d67 Renamed API amdsmi_dev_get_power_ave to
amdsmi_get_power_ave

grep -rli 'amdsmi_dev_get_power_ave' * | xargs -i@ sed -i
's/amdsmi_dev_get_power_ave/amdsmi_get_power_ave/g' @

Change-Id: Ie10de251d1e7b884b6233af05b37ff7b56075d4b
2023-05-11 10:41:08 -04:00
Deepak Mewar 508d2612d3 Renamed API amdsmi_get_vbios_info to
amdsmi_get_gpu_vbios_info

grep -rli 'amdsmi_get_vbios_info' * | xargs -i@ sed -i
's/amdsmi_get_vbios_info/amdsmi_get_gpu_vbios_info/g' @

Change-Id: I90249704db3d77eca6b09c33ef3f2cec5eda77a2
2023-05-11 10:40:15 -04:00
Deepak Mewar 24c0005e15 Renamed API amdsmi_dev_set_pci_bandwidth to
amdsmi_set_gpu_pci_bandwidth

grep -rli 'amdsmi_dev_set_pci_bandwidth' * | xargs -i@ sed -i
's/amdsmi_dev_set_pci_bandwidth/amdsmi_set_gpu_pci_bandwidth/g' @

Change-Id: Id4312cfe5fddb63c42c4c6ca0a9a1d94b83f7164
2023-05-11 10:39:39 -04:00
Deepak Mewar d8e22b9687 Renamed API amdsmi_dev_get_pci_replay_counter to
amdsmi_get_gpu_pci_replay_counter

grep -rli 'amdsmi_dev_get_pci_replay_counter' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_replay_counter/amdsmi_get_gpu_pci_replay_counter/g' @

Change-Id: Ic6ad26e35cb6cf73f87a71d39abf38d3afac4be4
2023-05-11 10:38:28 -04:00
Deepak Mewar 931099683b Renamed API amdsmi_dev_get_pci_throughput to
amdsmi_get_gpu_pci_throughput

grep -rli 'amdsmi_dev_get_pci_throughput' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_throughput/amdsmi_get_gpu_pci_throughput/g' @

Change-Id: Id6dbd3591d59954622237770e15320583b63dbe0
2023-05-11 10:38:08 -04:00
Deepak Mewar 83720266dd Renamed API amdsmi_topo_get_numa_affinity to
amdsmi_get_gpu_topo_numa_affinity

grep -rli 'amdsmi_topo_get_numa_affinity' * | xargs -i@ sed -i
's/amdsmi_topo_get_numa_affinity/amdsmi_get_gpu_topo_numa_affinity/g' @

Change-Id: If24a64e9e508bbd728570da5c3e69df5b802b59a
2023-05-11 10:37:44 -04:00
Deepak Mewar 55ddbdc67e Renamed API amdsmi_dev_get_pci_id to
amdsmi_get_gpu_pci_id

grep -rli 'amdsmi_dev_get_pci_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_id/amdsmi_get_gpu_pci_id/g' @

Change-Id: If5454038cf582bdf3c657f466d0f6eb1dd3c14e0
2023-05-11 10:37:12 -04:00
Deepak Mewar 928b7e2a4d Renamed API amdsmi_get_board_info to
amdsmi_get_gpu_board_info

grep -rli 'amdsmi_get_board_info' * | xargs -i@ sed -i
's/amdsmi_get_board_info/amdsmi_get_gpu_board_info/g' @

Change-Id: Ia3fb361aaf5832813e7ce41bfb88fbbf1432020b
2023-05-11 10:36:10 -04:00
Deepak Mewar 9b76d64944 Renamed API amdsmi_dev_get_pci_bandwidth to
amdsmi_get_gpu_pci_bandwidth

grep -rli 'amdsmi_dev_get_pci_bandwidth' * | xargs -i@ sed -i
's/amdsmi_dev_get_pci_bandwidth/amdsmi_get_gpu_pci_bandwidth/g' @

Change-Id: I43e5fc475f933b33770b6c2244232fca811c2036
2023-05-11 10:35:49 -04:00
Deepak Mewar 1f9074916f Renamed API amdsmi_get_asic_info to
amdsmi_get_gpu_asic_info

grep -rli 'amdsmi_get_asic_info' * | xargs -i@ sed -i
's/amdsmi_get_asic_info/amdsmi_get_gpu_asic_info/g' @

Change-Id: I4586c7f8876eba7b8af33b5ea29afa8bacb85a9a
2023-05-11 10:35:09 -04:00
Deepak Mewar ac1b857f24 Renamed API amdsmi_dev_get_drm_render_minor to
amdsmi_get_gpu_drm_render_minor

grep -rli 'amdsmi_dev_get_drm_render_minor' * | xargs -i@ sed -i
's/amdsmi_dev_get_drm_render_minor/amdsmi_get_gpu_drm_render_minor/g' @

Change-Id: Icf6a1ba28ee3ff7f1fa66bad5d600725aad0bfca
2023-05-11 10:34:01 -04:00
Deepak Mewar 82dbd07b2c Renamed API amdsmi_dev_get_subsystem_name to
amdsmi_get_gpu_subsystem_name

grep -rli 'amdsmi_dev_get_subsystem_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_name/amdsmi_get_gpu_subsystem_name/g' @

Change-Id: Ib6f2b03f824e1ee910cfbbd0bab09ad859ec252b
2023-05-11 10:33:20 -04:00
Deepak Mewar 14f1367d6b Renamed API amdsmi_dev_get_subsystem_id to
amdsmi_get_gpu_subsystem_id

grep -rli 'amdsmi_dev_get_subsystem_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_subsystem_id/amdsmi_get_gpu_subsystem_id/g' @

Change-Id: I64616ac4c001f7761b8d83120d05d21c5c8e763f
2023-05-11 10:32:32 -04:00
Deepak Mewar f69a6ea64e Renamed API amdsmi_dev_get_vram_vendor to
amdsmi_get_gpu_vram_vendor

grep -rli 'amdsmi_dev_get_vram_vendor' * | xargs -i@ sed -i
's/amdsmi_dev_get_vram_vendor/amdsmi_get_gpu_vram_vendor/g' @

Change-Id: I3c11643a778f147027d0d3121b9782931439c752
2023-05-11 10:32:00 -04:00
Deepak Mewar 21da55b9df Renamed API amdsmi_dev_get_vendor_name to
amdsmi_get_gpu_vendor_name

grep -rli 'amdsmi_dev_get_vendor_name' * | xargs -i@ sed -i
's/amdsmi_dev_get_vendor_name/amdsmi_get_gpu_vendor_name/g' @

Change-Id: Ib31c1387150d0dd268d1bd54cfb43786c7ec41c1
2023-05-11 10:31:41 -04:00
Deepak Mewar 20222f771e Renamed API amdsmi_dev_get_id to amdsmi_get_gpu_id
grep -rli 'amdsmi_dev_get_id' * | xargs -i@ sed -i
's/amdsmi_dev_get_id/amdsmi_get_gpu_id/g' @

Change-Id: I78faeff9a94250454bcecfaa50b5c7cc7e04cb98
2023-05-11 10:30:53 -04:00
Suma Hegde 3f9e4d95d4 Change device_handle to processor_handle
grep -rli 'device_handle' * | xargs -i@ sed -i
's/device_handle/processor_handle/g' @

Change-Id: Ifc8b7fa3b5488ce1fa8d8cf9eb3981a09450de11
2023-05-11 10:11:24 -04:00
Suma Hegde 3963036a05 Change amdsmi_device_handle to amdsmi_processor_handle
grep -rli 'amdsmi_device_handle' * | xargs -i@ sed -i
's/amdsmi_device_handle/amdsmi_processor_handle/g' @

Change-Id: Ie25c51933dcc31e5b34c8070d0d5ba0e8cd05cc1
2023-05-11 10:09:11 -04:00
Galantsev, Dmitrii 3d00ae1240 CMake: Install amdsmitst.exclude
Change-Id: I166cbd265cf9074e17cad39fddac77988e2fd686
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-04-27 11:58:03 -04:00
Charis Poag 78a0812f7f [SWDEV-391036 + SWDEV-392933] Fixes for VoltRead and ComputePart.
Updates:
    * VoltRead - needed to properly send out RSMI_STATUS_NOT_SUPPORTED
      when device does not have voltage hwmon files
    * ComputePart. - test failure was likely caused due to EvtNotif
      causing conflicts (unknown exactly why). Test passes when
      moving it ahead of the event notifier. Both API calls may have
      a system resource issue, TBD.
    * rocm_smi_example - now indicates when an API call
      returns RSMI_STATUS_NOT_SUPPORTED or
      RSMI_STATUS_NOT_YET_IMPLEMENTED. Allows example to fully complete
      on systems which may not provide support for all API calls.

Change-Id: I520b8584e078d412414e8e5797c664220a7e823a
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-04-05 12:44:29 -05:00
AravindanC 778f3b7fdc SWDEV-351540 - ASAN packaging for rocm_smi_lib
Change-Id: Iab354d02d261a0270a3d118b825835fc6f021c15
2023-03-20 13:14:53 -07:00
Charis Poag c252ecccd1 [SWDEV-335697 + SWDEV-342812] Fix NPS & Compute tests
Updates:
    * Fixed rsmi_dev_compute_partition_get
      & rsmi_dev_nps_mode_get to properly check
      for invalid arguments
    * Updated compute partition & NPS mode tests
      - Now properly confirms the invalid
        argument is seen
      - Spacing for multiple devices is added
        to better see distinction between
        separate device's tests (for verbose output)
      - Changed expect to assert calls, so errors
        are observed faster for test failures
      - Fixed multiple device testing where a
        variable should have been unset, but
        having multiple devices caused it to
        set
      - Updated multiple device testing to iterate
        accross all devices (previously returned,
        instead of continuing checking support
        after RSMI_STATUS_NOT_SUPPORTED detected)
      - Fixed a few spelling errors & verbose output

Change-Id: Ieba9e5b46763c6cd880fbf27fcdf58be8ecbc683
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-03-02 13:24:38 -06:00
Charis Poag 0d3558945b [SWDEV-335697] Add RSMI_STATUS_SETTING_UNAVAILABLE for dynamic partition
Updates:
    * Added RSMI_STATUS_SETTING_UNAVAILABLE for
      rsmi_dev_compute_partition_set - gives users
      better error output when attempting to set
      compute partition to values not listed in
      available_compute_partition SYSFS
    * Updated python --setcomputepartition to
      provide better output when receiving
      RSMI_STATUS_SETTING_UNAVAILABLE
    * Updated all test & example files to check for
      RSMI_STATUS_SETTING_UNAVAILABLE when doing
      rsmi_dev_compute_partition_set

Change-Id: Ida5d54880d9b9b6e4a0468cdb962fdc0c18d6257
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-02-27 11:17:44 -06:00
Charis Poag 77c950a4bf [SWDEV-381630] Add reset partition functionality
Updates:
    * Added rsmi_dev_compute_partition_reset & rsmi_dev_nps_mode_reset
    * Added --resetcomputepartition and --resetnpsmode python smi calls
    * Added temp data files rocmsmi_boot_compute_partition_<device num>
      & rocmsmi_boot_nps_mode_partition_<device num>, writes UNKNOWN
      if data cannot be read or device does not support
    * Cleaned up NPS & compute API documentation
    * Added creation and reading of API temp files (used in reset
      functionality)
    * Cleaned up output of rocm_smi_example
    * Updated rocm_smi_example to check if running with sudo permission
      before executing write API calls (cleans up erroneous output)
    * Added template specialization for storing temp data, requires
      specific rsmi_type_t enums (restrics what data can be stored)
    * Added storage of temp data, if temp files do not exist
    * Updated google tests for NPS & compute to include reset API calls

Change-Id: I69895a466b97107617e6dbb355737b84499a76c9
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-02-17 12:55:08 -06:00
Charis Poag 9ef376cd61 SWDEV-342812- Add NPS support
Updates:
    * Added rsmi_dev_nps_mode_set and rsmi_dev_nps_mode_get
    * Added ability to set multiple SYSFS files in debug build
    * Added ability to see user's env variables set for debug build
    * Added tests for rsmi_dev_nps_mode_set and rsmi_dev_nps_mode_get
    * Added ability to restart AMD GPU driver, used in nps_mode_set
    * Updated ROCm_SMI_Manual.pdf to include new APIs
    * Added progress bar for long running python_smi_tools, used
      in setting nps_mode if runs longer than .1 seconds

Change-Id: I6d61bedd28d7cba6aff432ad2d127ba741b7d15a
Signed-off-by: Charis Poag <Charis.Poag@amd.com>
2023-02-14 11:54:24 -06:00
Galantsev, Dmitrii 6ee793ca03 SWDEV-340919 - Move examples and tests install dir
Previous install locations:
- /opt/rocm/share/example/amd-smi
- /opt/rocm/share/tests/amd-smi

New install locations:
- /opt/rocm/share/amd_smi/example
- /opt/rocm/share/amd_smi/tests

Change-Id: I305477b9f66bdc5963923efe6da1c01f87ea2085
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-01-20 09:49:56 -06:00
Dalibor Stanisavljevic bf79fe4323 SWDEV-378294 - Fixed failing tests
Change-Id: Ie0f9dedd6901e05b1a5ca7846624c127d92ed67f
Signed-off-by: Dalibor Stanisavljevic <Dalibor.Stanisavljevic@amd.com>
2023-01-18 10:28:32 -05:00
Elena Sakhnovitch 2b449fe58d Measure api execution time
Add new test to measure api execution time.

Change-Id: I0ad10c822bad4a2ae04b5785173b4ff21996021d
2023-01-16 17:00:36 -05:00
Charis Poag 4d7f3f2bc7 SWDEV-335697- Add support for dynamic partitioning
Original updates:
    * Added .gitignore to help with future commits
    * Updated/added copyrights on modified or added files
    * Updated rocm_smi.h/.cc
      - Added 3 new SMI API functions:
          rsmi_dev_compute_partition_set &
          rsmi_dev_compute_partition_get
      - Added helpful maps/enums used in
        new get/set compute_partition API calls
    * Updated rocm_smi.py
      - Added --showcomputepartition
      - Added --setcomputepartition
      - Fixed a few mistypes
    * Updated rsmiBindings.py - added helpful class/dict/list
    * Updated rocm_smi_example.cc
      - Added helpful MACRO to detect if api is not supported.
      - Added current_compute_partition set/get rocm lib calls
      - Added helpful macro to discover future RSMI errors
      - Commented out test_set_freq, was having permission issues
        on a Navi21
    * Updated rocm_smi_main.cc
      - Added helpful map to debug API calls, left in for future use
      - Added comment to better understand a non-class function returns
    * Added computepartition_read_write.cc/.h
      - Added get/set compute partition API test calls
      - Confirmed on devices that do not support the API calls, tests pass
    * Updated rocm_smi_test/main.cc
      - Calls new compute partition gtests

Added following updates from review feedback:
   * Updated rocm_smi.h/cc
       - Removed C++ API calls, adding support for both C/C++
         API calls could cause confusion and adds extra work for us
       - rsmi_dev_compute_partition_get -> Fixed an edge case where
         user gives a small buffer length size (smaller than data
         received), but does not receive the partial buffer back.
         google Tests are updated to reflect this find.
   * Updated rocm_smi_example.cc
       - Fixed test_set_freq, issue was that file was not writable.
         We now indicate this warning, so prior errors make sense.
       - General test code cleanup. Removed extra code,
         by creating loops for tests.
   * Updated rocm_smi_main.cc
     - Moved and got rid of an external reference to a map used
       for debugging RSMI enums, now is a const public reference.
   * Updated rocm_smi.py
     - Updated python code to identify NOT_SUPPORTED due to
       (currently) only a few GPU support the feature

Change-Id: I4a567acbb59d6771fb64df08d19175fe3604fd1b
2023-01-13 10:46:40 -05:00
Bill(Shuzhou) Liu 79bd9c1d5f change sensor_type in amdsmi_dev_get_temp_metric() to enum
The sensor_type in amdsmi_dev_get_temp_metric() will be changed to
amdsmi_temperature_type_t

Change-Id: I72a7f271b0a55a025acc2ca523062a3d51cc036d
2023-01-04 13:01:04 -06:00
Galantsev, Dmitrii 2184d0c3d7 SWDEV-374138 - Improve ASAN flags
Tests overwritten the linker flags resulting in failed build with clang.
This change improves ASAN linker flag assignment and fixes test issue.

Change-Id: I88f38360d46b20f6cc7298ad0d1fd09ff6ce47d6
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>
2023-01-03 16:30:48 -06:00