Use templates for module population

Also add stddef.h workaround for old GCC.
RHEL-8 still uses GCC 8.5 and templates are not well supported.

Change-Id: Ia4dae23892ec63682ea848c46ba81de85cf6d209
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: f9e80cc37a]
이 커밋은 다음에 포함됨:
Galantsev, Dmitrii가 2024-01-10 00:27:09 -06:00를 커밋했습니다
1 부모 38c60ff90b
커밋 703d6c0d44
27 파일이 변경됨
+135 -165

검색과 일치하는 파일 없음

-2
파일 보기
@@ -1,4 +1,3 @@
/*
Copyright (c) 2019 - present Advanced Micro Devices, Inc. All rights reserved.
@@ -222,7 +221,6 @@ void RDCServer::Run() {
}
// Finally assemble the server.
// std::unique_ptr<::grpc::Server> server(builder.BuildAndStart());
server_ = builder.BuildAndStart();
std::cout << "Server listening on " << server_address_.c_str() << std::endl;