6a899b5f6d
In order for pre-commit to be useful, everything needs to meet a common baseline. Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
37 řádky
1.2 KiB
Python
37 řádky
1.2 KiB
Python
"""
|
|
This dictionary is used to map specific file directory changes to the corresponding build flag and tests
|
|
"""
|
|
subtree_to_project_map = {
|
|
'projects/aqlprofile': 'profiler',
|
|
'projects/clr': 'core',
|
|
'projects/hip': 'core',
|
|
'projects/hip-tests': 'core',
|
|
'projects/hipother': 'core',
|
|
'projects/rdc': 'rdc',
|
|
'projects/rocm-core': 'core',
|
|
'projects/rocm-smi-lib': 'core',
|
|
'projects/rocminfo': 'core',
|
|
'projects/rocprofiler-compute': 'profiler',
|
|
'projects/rocprofiler-register': 'profiler',
|
|
'projects/rocprofiler-sdk': 'profiler',
|
|
'projects/rocprofiler-systems': 'profiler',
|
|
'projects/rocprofiler': 'profiler',
|
|
'projects/rocr-runtime': 'core',
|
|
'projects/roctracer': 'profiler'
|
|
}
|
|
|
|
project_map = {
|
|
"core": {
|
|
"cmake_options": "-DTHEROCK_ENABLE_CORE=ON -DTHEROCK_ENABLE_HIP_RUNTIME=ON -DTHEROCK_ENABLE_ALL=OFF",
|
|
"project_to_test": "hip-tests",
|
|
},
|
|
"profiler": {
|
|
"cmake_options": "-DTHEROCK_ENABLE_PROFILER=ON -DTHEROCK_ENABLE_ALL=OFF",
|
|
"project_to_test": "rocprofiler-tests",
|
|
},
|
|
"all": {
|
|
"cmake_options": "-DTHEROCK_ENABLE_CORE=ON -DTHEROCK_ENABLE_PROFILER=ON -DTHEROCK_ENABLE_ALL=OFF",
|
|
"project_to_test": "hip-tests, rocprofiler-tests",
|
|
}
|
|
}
|