Skip to contentSkip to conversation

Add demo external app

PATCH New Tom St Denis 1 participant 1 message Jun 19, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add demo external app

This commit adds the first external app demo. In this case a fan controller based on reading the GPU_TEMP sensor.

It has a hard coded pwm path and instance which can be changed later.

You have to "make install" umr first then you can build this with "make".

---
 demo/vega10_pwm/Makefile |   6 +++
 demo/vega10_pwm/main.c   | 119 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 125 insertions(+)
 create mode 100644 demo/vega10_pwm/Makefile
 create mode 100644 demo/vega10_pwm/main.c
demo/vega10_pwm/Makefile new file +6 -0
new file mode 100644
index 000000000000..9ae40e2fbb14
@@ -0,0 +1,6 @@
+vega10_pwm: main.o
+	${CC} main.o -lumrcore -lpciaccess -o vega10_pwm
+
+.PHONY: clean
+clean:
+	rm -f main.o vega10_pwm
demo/vega10_pwm/main.c new file +119 -0

119 lines not on this page · raw message

Signature · 6 lines
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx