Skip to content

Commit

Permalink
New package: ROCm-SMI-6.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Martinez authored and classabbyamp committed Oct 9, 2024
1 parent 2ed4a25 commit b491401
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions srcpkgs/ROCm-SMI-devel
16 changes: 16 additions & 0 deletions srcpkgs/ROCm-SMI/patches/cflags.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82306ad..74f407a 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -105,11 +105,6 @@ endif ()
# Use this instead of above for 32 bit
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m32")

-if ("${CMAKE_BUILD_TYPE}" STREQUAL Release)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
-else ()
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb -O0 -DDEBUG")
-endif ()

set(COMMON_SRC_DIR "${PROJECT_SOURCE_DIR}/src")
set(COMMON_INC_DIR "${PROJECT_SOURCE_DIR}/include/rocm_smi")
21 changes: 21 additions & 0 deletions srcpkgs/ROCm-SMI/template
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Template file for 'ROCm-SMI'
pkgname=ROCm-SMI
version=6.2.2
revision=1
build_style=cmake
short_desc="ROCm System Management Interface"
maintainer="Daniel Martinez <danielmartinez@cock.li>"
license="NCSA"
homepage="https://github.com/ROCm/rocm_smi_lib"
changelog="https://raw.githubusercontent.com/ROCm/rocm_smi_lib/rocm-${version}/CHANGELOG.md"
distfiles="https://github.com/ROCm/rocm_smi_lib/archive/refs/tags/rocm-${version}.tar.gz"
checksum=c0701ef131dcd591ef2d4d2f1719af59cbed35bc3eccd3ce9523f55293fa1a37

ROCm-SMI-devel_package() {
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove "usr/lib/*.so"
}
}
1 change: 1 addition & 0 deletions srcpkgs/ROCm-SMI/update
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pkgname="rocm"

0 comments on commit b491401

Please sign in to comment.