diff --git a/GrpcInterface/RiaGrpcServer.cpp b/GrpcInterface/RiaGrpcServer.cpp index 6ca1062d92..1b26eeb94f 100644 --- a/GrpcInterface/RiaGrpcServer.cpp +++ b/GrpcInterface/RiaGrpcServer.cpp @@ -37,6 +37,7 @@ #include #include +#include using grpc::CompletionQueue; using grpc::Server; @@ -141,6 +142,13 @@ void RiaGrpcServerImpl::initialize() ServerBuilder builder; + int numOmpThreads = 0; +#pragma omp parallel + { + numOmpThreads = omp_get_num_threads(); + } + RiaLogging::info( QString( "OpenMP Num Threads: %1" ).arg( numOmpThreads ) ); + // When setting port number to 0, grpc will find and use a valid port number // The port number is assigned to the m_portNumber variable after calling builder.BuildAndStart() QString requestedServerAddress = QString( "localhost:%1" ).arg( m_portNumber );