Skip to content

Commit cf1ae34

Browse files
QShen3Syllo
authored andcommitted
Add support for Enflame GCU
1 parent cb7babe commit cf1ae34

File tree

4 files changed

+1009
-2
lines changed

4 files changed

+1009
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ else()
9494
set(METAX_SUPPORT_DEFAULT ON)
9595
endif()
9696

97-
# TPU support is only available on Linux
97+
# TPU and Enflame GCU support is only available on Linux
9898
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
9999
# Check for libtpuinfo.so to set the default for TPU support
100100
find_library(LIBTPUINFO
@@ -107,8 +107,10 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
107107
else()
108108
set(TPU_SUPPORT_DEFAULT ON)
109109
endif()
110+
set(ENFLAME_SUPPORT_DEFAULT ON)
110111
else()
111112
set(TPU_SUPPORT_DEFAULT OFF)
113+
set(ENFLAME_SUPPORT_DEFAULT OFF)
112114
endif()
113115

114116
# Rockchip support is only available on Linux on arm
@@ -132,6 +134,7 @@ option(V3D_SUPPORT "Build support for Raspberrypi through v3d" ${V3D_SUPPORT_DEF
132134
option(TPU_SUPPORT "Build support for Google TPUs through GRPC" ${TPU_SUPPORT_DEFAULT})
133135
option(ROCKCHIP_SUPPORT "Enable support for Rockchip NPU" ${ROCKCHIP_SUPPORT_DEFAULT})
134136
option(METAX_SUPPORT "Build support for MetaX GPUs through libmxsml" ${METAX_SUPPORT_DEFAULT})
137+
option(ENFLAME_SUPPORT "Build support for Enflame GCUs through libefml" ${ENFLAME_SUPPORT_DEFAULT})
135138

136139
add_subdirectory(src)
137140

README.markdown

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ htop-familiar way.
1010

1111
Currently supported vendors are AMD (Linux amdgpu driver), Apple (limited M1 &
1212
M2 support), Huawei (Ascend), Intel (Linux i915/Xe drivers), NVIDIA (Linux
13-
proprietary divers), Qualcomm Adreno (Linux MSM driver), Broadcom VideoCore (Linux v3d driver).
13+
proprietary divers), Qualcomm Adreno (Linux MSM driver), Broadcom VideoCore (Linux v3d driver),
14+
Rockchip, MetaX (MXSML driver), Enflame (Linux EFML driver).
1415

1516
Because a picture is worth a thousand words:
1617

@@ -31,6 +32,9 @@ Table of Contents
3132
- [Apple](#apple)
3233
- [Ascend](#ascend) (only tested on 910B)
3334
- [VideoCore](#videocore)
35+
- [Rockchip](#rockchip)
36+
- [MetaX](#metax)
37+
- [Enflame](#enflame)
3438
- [Build](#build)
3539
- [Distribution Specific Installation Process](#distribution-specific-installation-process)
3640
- [Ubuntu / Debian](#ubuntu--debian)
@@ -150,6 +154,12 @@ NVTOP supports MetaX (testing on MXC500) by MXSML LIBRARY.
150154

151155
For more information about GPUs please take a look at the [METAX documentation](https://developer.metax-tech.com/doc/index)
152156

157+
### Enflame
158+
159+
NVTOP supports Enflame GCUs (testing on Enflame S60, Enflame L300 and Enflame L600) by EFML LIBRARY
160+
161+
GCU, which refers to General Compute Unit, is a type of accelerator card that is used to perform general-purpose computing tasks just like GPGPU.
162+
153163
Build
154164
-----
155165

@@ -162,6 +172,7 @@ Several libraries are required in order for NVTOP to display GPU info:
162172
* For AMD: the libdrm library used to query AMD GPUs through the kernel driver.
163173
* For METAX: the *MetaX System Management Library* (*MXSML*) which comes with the GPU driver.
164174
* This queries the GPU for info.
175+
* For Enflame: the *Enflame Management Library* (*EFML*) which comes with the GCU driver.
165176

166177
## Distribution Specific Installation Process
167178

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ if(METAX_SUPPORT)
155155
target_sources(nvtop PRIVATE extract_gpuinfo_metax.c)
156156
endif()
157157

158+
if(ENFLAME_SUPPORT)
159+
message(STATUS "Building with Enflame GCU support")
160+
target_sources(nvtop PRIVATE extract_gcuinfo_enflame.c)
161+
endif()
162+
158163
target_include_directories(nvtop PRIVATE
159164
${PROJECT_SOURCE_DIR}/include
160165
${PROJECT_BINARY_DIR}/include)

0 commit comments

Comments
 (0)