Comments (5)
I think it would be best to follow the FHS and do:
├── lib
│ ├── librocm_smi64.so -> librocm_smi64.so.1
│ ├── librocm_smi64.so.1 -> librocm_smi64.so.1.0
│ ├── librocm_smi64.so.1.0
│ ├── liboam.so -> liboam.so.1
│ ├── liboam.so.1 -> liboam.so.1.0
│ └── liboam.so.1.0
├── include
│ ├── rocm_smi
│ │ ├── kfd_ioctl.h
│ │ └── rocm_smi.h
│ ├── oam
│ │ ├── amd_oam.h
│ │ └── oam_mapi.h
├── share
│ ├── rocm_smi (or oam where applicable)
│ │ ├── README.md
│ │ ├── ROCm_SMI_Manual.pdf
│ │ └── refman.pdf
CMake also has a library for this:
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
Where you include(GNUInstallDirs), then replace "lib" with ${CMAKE_INSTALL_LIBDIR}, replace "include" with ${CMAKE_INSTALL_INCLUDEDIR}, and replace "share" with ${CMAKE_INSTALL_DATADIR}.
This allows distros or users to customise how they want to install these files. Thunk already does this, which is fantastic in my eyes.
from rocm_smi_lib.
We do this now! :)
Thank you for pushing for this. The previous design was ridiculous.
In fact all rocm things should follow a sane flat structure now.
from rocm_smi_lib.
Oh, this would be great. I keep wanting to package rocm_smi_lib
for Fedora Linux, and this is exactly what I would have to do manually. It would be great if the install were “normal” to begin with, and I didn’t have to try to rearrange it without accidentally breaking anything.
from rocm_smi_lib.
from rocm_smi_lib.
I think it would be best to follow the FHS and do:
...
CMake also has a library for this: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.htmlWhere you include(GNUInstallDirs), then replace "lib" with ${CMAKE_INSTALL_LIBDIR}, replace "include" with ${CMAKE_INSTALL_INCLUDEDIR}, and replace "share" with ${CMAKE_INSTALL_DATADIR}. This allows distros or users to customise how they want to install these files. Thunk already does this, which is fantastic in my eyes.
Totally!
from rocm_smi_lib.
Related Issues (20)
- failure to build with link time optimization enabled HOT 2
- installing `python-is-python3` into rocm container removes all rocm packages HOT 3
- rocm-smi --setfan 100% temporarily increases GPU speeds, but they shortly revert HOT 1
- rsmitst64 and rocm-smi -a fail on OD_VDDC_CURVE with ppfeaturemask set HOT 2
- RSMI_STATUS_PERMISSION on rocm-smi --setmclk HOT 2
- Mapping between HIP device ID and rocm_smi HOT 1
- Is there a plan for pip package? HOT 1
- question: is there a cmdline switch for displaying which apps are using GPU HOT 1
- Instacrash on hu-HU localized Windows HOT 2
- Compatibility with non-PRO AMD Software HOT 1
- rocm-smi.py - Function checkIfSecondaryDie is defined twice HOT 4
- `rsmi_init` fails during OMPT initialization when target offloading is used HOT 1
- typo in rocm smi lib 5.7.0 HOT 2
- The returned rsmi_status_t is inconsistent
- ROCM 6.0 GA rocm_smi.h fails to compile, error: unknown type name ‘metrics_table_header_t’ HOT 4
- Discrepancy between "rocm-smi" and "rocm-smi -a" HOT 2
- rocm_smi.py/amdsmi_cli.py has around a 3 second latency on first call.
- [Issue]: Recent changes to 6.0.1-112 make it ABI incompatible to 6.0.0 HOT 4
- [Issue]: Unable to set power overdrive with rocm-smi HOT 1
- [Issue]: library has version 7.0.0.0 in 6.0.0 tarball and 2.8.0.37 in 6.0.x branch HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rocm_smi_lib.