4d7f3f2bc7
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
124 строки
1.5 KiB
Plaintext
124 строки
1.5 KiB
Plaintext
#
|
|
# NOTE! Don't add files that are generated in specific
|
|
# subdirectories here. Add them in the ".gitignore" file
|
|
# in that subdirectory instead.
|
|
#
|
|
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
|
# command after changing this file, to see if there are
|
|
# any tracked files which get ignored after the change.
|
|
#
|
|
# Normal rules
|
|
#
|
|
.*
|
|
*.o
|
|
*.o.*
|
|
*.a
|
|
*.s
|
|
*.ko
|
|
*.so
|
|
*.so.dbg
|
|
*.mod.c
|
|
*.i
|
|
*.lst
|
|
*.symtypes
|
|
*.order
|
|
modules.builtin
|
|
*.elf
|
|
*.bin
|
|
*.gz
|
|
*.bz2
|
|
*.lzma
|
|
*.xz
|
|
*.lzo
|
|
#*.patch
|
|
*.gcno
|
|
*.pyc
|
|
*current_compute_partition
|
|
|
|
#
|
|
# Top-level generic files/folders
|
|
#
|
|
/[Bb][Ui][Ll][Dd]
|
|
*/[Bb][Ui][Ll][Dd]
|
|
/build
|
|
*/build
|
|
/[Gg][Tt][Ee][Ss][Tt][Ss]
|
|
*/[Gg][Tt][Ee][Ss][Tt][Ss]
|
|
/tags
|
|
/TAGS
|
|
/linux
|
|
/vmlinux
|
|
/vmlinuz
|
|
/System.map
|
|
/Module.markers
|
|
Module.symvers
|
|
|
|
#
|
|
# Debian directory (make deb-pkg)
|
|
#
|
|
/debian/
|
|
|
|
#
|
|
# git files that we don't want to ignore even it they are dot-files
|
|
#
|
|
!.gitignore
|
|
!.mailmap
|
|
|
|
### VisualStudioCode ###
|
|
!.vscode/settings.json
|
|
|
|
#
|
|
# Generated include files
|
|
#
|
|
include/config
|
|
include/linux/version.h
|
|
include/generated
|
|
arch/*/include/generated
|
|
|
|
# git generated dirs
|
|
patches-*
|
|
|
|
# quilt's files
|
|
patches
|
|
series
|
|
|
|
# cscope files
|
|
cscope.*
|
|
ncscope.*
|
|
|
|
# gnu global files
|
|
GPATH
|
|
GRTAGS
|
|
GSYMS
|
|
GTAGS
|
|
|
|
*.orig
|
|
*~
|
|
\#*#
|
|
|
|
#
|
|
# Leavings from module signing
|
|
#
|
|
extra_certificates
|
|
signing_key.priv
|
|
signing_key.x509
|
|
x509.genkey
|
|
|
|
#cmake files
|
|
CMakeLists.txt.user
|
|
CMakeCache.txt
|
|
CMakeFiles
|
|
CMakeScripts
|
|
Testing
|
|
Makefile
|
|
cmake_install.cmake
|
|
install_manifest.txt
|
|
compile_commands.json
|
|
CTestTestfile.cmake
|
|
_deps
|
|
|
|
#
|
|
# ROCm files
|
|
# Removes generated config headers like rocmsmi64Config.h & oamConfig.h
|
|
#
|
|
*Config.h |