Skip to content
Snippets Groups Projects
Commit eecdb431 authored by Benjamin Lindner2's avatar Benjamin Lindner2
Browse files

fixed potential cast issue (xt5 fail) from size_t to long

parent f42d6676
No related branches found
No related tags found
No related merge requests found
......@@ -158,8 +158,8 @@ void AbstractScatterDevice::start_workers() {
// worker_threads = NM;
// }
if (allcomm_.rank()==0) {
if ( (partitioncomm_.size()!=1) && (partitioncomm_.size()<long(numthreads)) ) {
if ( (partitioncomm_.size()!=1) && (partitioncomm_.size()<long(numthreads)) ) {
if (allcomm_.rank()==0) {
Warn::Inst()->write("Partition smaller than number of threads.");
Warn::Inst()->write("Can not utilize more threads than partition size.");
Warn::Inst()->write(string("Setting limits.computation.threads.worker=")+boost::lexical_cast<string>(partitioncomm_.size()));
......
......@@ -251,7 +251,7 @@ void AllVectorsScatterDevice::compute() {
timer.stop("sd:c:b:exchange");
timer.start("sd:c:b:dspstore");
if (partitioncomm_.rank()<long(std::min(NMBLOCK,NM-i))) {
if (partitioncomm_.rank()<std::min(NMBLOCK,NM-i)) {
fftw_complex* nat = alignpad(at);
fftw_free(at); at=NULL;
dsp(nat);
......
......@@ -114,7 +114,7 @@ IScatterDevice* ScatterDeviceFactory::create(
}
size_t allcommflag = 0;
if (scatter_comm.rank()<long(allcommsize)) allcommflag = 1;
if (scatter_comm.rank()<allcommsize) allcommflag = 1;
boost::mpi::communicator all_comm = scatter_comm.split( allcommflag );
if (allcommflag==0) {
......
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