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 <Hongkun.Zhang@amd.com>
Reviewed-by: tiancyin <tianci.yin@amd.com>
Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/1>
This commit is contained in:
Horatio Zhang
2024-10-28 15:38:37 +08:00
committed by Frank Min
parent 8663eeaa34
commit e8235d4a50
+3
View File
@@ -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();