From e8235d4a50346c02c9350aa94be99a02a9a691b7 Mon Sep 17 00:00:00 2001 From: Horatio Zhang Date: Mon, 28 Oct 2024 15:38:37 +0800 Subject: [PATCH] wsl/rocr: Add rocr4wsl project version Users can obtain rocr4wsl version information through the following methods: strings /opt/rocm/lib/libhsa-runtime64.so | grep ROCR4WSL strings /opt/rocm/lib/libhsakmt.a | grep ROCR4WSL Signed-off-by: Horatio Zhang Reviewed-by: tiancyin Part-of: --- version.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/version.cpp b/version.cpp index 27560b43a4..98b4ad7c34 100644 --- a/version.cpp +++ b/version.cpp @@ -25,6 +25,8 @@ #include "libhsakmt.h" +const char rocr4wslbuildid[] __attribute__((used)) = "ROCR4WSL BUILD ID: " STRING(ROCR4WSL_VERSION); + HSAKMT_STATUS HSAKMTAPI hsaKmtGetVersion(HsaVersionInfo *VersionInfo) { CHECK_DXG_OPEN(); @@ -33,6 +35,7 @@ HSAKMT_STATUS HSAKMTAPI hsaKmtGetVersion(HsaVersionInfo *VersionInfo) { return HSAKMT_STATUS_SUCCESS; } + HSAKMT_STATUS HSAKMTAPI hsaKmtGetVersionCapInfo(HsaVersionCapability *VersionCapInfo) { CHECK_DXG_OPEN();