Skip to content
Snippets Groups Projects
Commit 38789743 authored by Anna Wellmann's avatar Anna Wellmann Committed by Anna Wellmann
Browse files

Remove flag for useMultiGPU and use getNumProcesses() instead

parent e0efb07d
No related branches found
No related tags found
1 merge request!104Add Communication Hiding to GPU version
......@@ -117,7 +117,6 @@ void multipleLevel(const std::string& configPath)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
bool useGridGenerator = true;
bool useMultiGPU = true;
bool useStreams = true;
bool useLevels = true;
para->useReducedCommunicationAfterFtoC = true;
......@@ -144,7 +143,6 @@ void multipleLevel(const std::string& configPath)
*logging::out << logging::Logger::INFO_HIGH << "viscosity real [m^2/s] = " << viscosityLB * para->getViscosityRatio() << "\n";
*logging::out << logging::Logger::INFO_HIGH << "dxGrid = " << dxGrid << "\n";
*logging::out << logging::Logger::INFO_HIGH << "useGridGenerator = " << useGridGenerator << "\n";
*logging::out << logging::Logger::INFO_HIGH << "useMultiGPU = " << useMultiGPU << "\n";
*logging::out << logging::Logger::INFO_HIGH << "useStreams = " << useStreams << "\n";
......@@ -173,7 +171,7 @@ void multipleLevel(const std::string& configPath)
para->setMainKernel("CumulantK17CompChimStream");
*logging::out << logging::Logger::INFO_HIGH << "Kernel: " << para->getMainKernel() << "\n";
// if (useMultiGPU) {
// if (para->getNumprocs() > 1) {
// para->setDevices(std::vector<uint>{ (uint)0, (uint)1 });
// para->setMaxDev(2);
// } else
......@@ -213,7 +211,7 @@ void multipleLevel(const std::string& configPath)
bivalveRef_1_STL = TriangularMesh::make(stlPath + bivalveType + "_Level1.stl");
if (useMultiGPU) {
if (para->getNumprocs() > 1) {
const uint generatePart = vf::gpu::Communicator::getInstanz()->getPID();
real overlap = (real)8.0 * dxGrid;
......
......@@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL1GPU
##################################################
#simulation parameter
##################################################
TimeEnd=100000
TimeEnd=10000
TimeOut=1000
#TimeStartOut=0
\ No newline at end of file
......@@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL2GPU
##################################################
#simulation parameter
##################################################
TimeEnd=100000
TimeEnd=10000
TimeOut=1000
#TimeStartOut=0
\ No newline at end of file
......@@ -31,6 +31,6 @@ GridPath=/work/y0078217/Grids/GridMusselOyster/MUSSEL4GPU
##################################################
#simulation parameter
##################################################
TimeEnd=100000
TimeEnd=10000
TimeOut=1000
#TimeStartOut=0
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment