mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-11-14 05:57:25 +01:00
195d0794b0
* Add cpu_used (all-cpu_idle) to CpustatCollector * Update to line-protocol/v2 * Update runonce.yml with Golang 1.20 * Update fsnotify in LIKWID Collector * Use not a pointer to line-protocol.Encoder * Simplify Makefile * Use only as many arguments as required * Allow sum function to handle non float types * Allow values to be a slice of type float64, float32, int, int64, int32, bool * Use generic function to simplify code * Add missing case for type []int32 * Use generic function to compute minimum * Use generic function to compute maximum * Use generic function to compute average * Add error value to sumAnyType * Use generic function to compute median * For older versions of go slices is not part of the installation * Remove old entries from go.sum * Use simpler sort function * Compute metrics ib_total and ib_total_pkts * Add aggregated metrics. Add missing units * Update likwidMetric.go Fixes a potential bug when `fsnotify.NewWatcher()` fails with an error * Completly avoid memory allocations in infinibandMetric read() * Fixed initialization: Initalization and measurements should run in the same thread --------- Co-authored-by: Holger Obermaier <40787752+ho-ob@users.noreply.github.com>
34 lines
1.2 KiB
Makefile
34 lines
1.2 KiB
Makefile
# LIKWID version
|
|
LIKWID_VERSION := 5.2.2
|
|
LIKWID_INSTALLED_FOLDER := $(shell dirname $$(which likwid-topology 2>/dev/null) 2>/dev/null)
|
|
|
|
LIKWID_FOLDER := $(CURDIR)/likwid
|
|
|
|
all: likwid
|
|
|
|
.ONESHELL:
|
|
.PHONY: likwid
|
|
likwid:
|
|
if [ -n "$(LIKWID_INSTALLED_FOLDER)" ]; then
|
|
# Using likwid include files from system installation
|
|
INCLUDE_DIR="$(LIKWID_INSTALLED_FOLDER)/../include"
|
|
mkdir --parents --verbose "$(LIKWID_FOLDER)"
|
|
cp "$${INCLUDE_DIR}"/*.h "$(LIKWID_FOLDER)"
|
|
else
|
|
# Using likwid include files from downloaded tar archive
|
|
if [ -d "$(LIKWID_FOLDER)" ]; then
|
|
rm --recursive "$(LIKWID_FOLDER)"
|
|
fi
|
|
BUILD_FOLDER="$${PWD}/likwidbuild"
|
|
mkdir --parents --verbose "$${BUILD_FOLDER}"
|
|
wget --output-document=- http://ftp.rrze.uni-erlangen.de/mirrors/likwid/likwid-$(LIKWID_VERSION).tar.gz |
|
|
tar --directory="$${BUILD_FOLDER}" --extract --gz
|
|
install -D --verbose --preserve-timestamps --mode=0644 --target-directory="$(LIKWID_FOLDER)" "$${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes"/likwid*.h "$${BUILD_FOLDER}/likwid-$(LIKWID_VERSION)/src/includes"/bstrlib.h
|
|
rm --recursive "$${BUILD_FOLDER}"
|
|
fi
|
|
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf likwid
|