mirror of
https://github.com/paboyle/Grid.git
synced 2025-06-15 06:17:05 +01:00
Compare commits
5 Commits
dirac-ITT
...
dirac-ITT-
Author | SHA1 | Date | |
---|---|---|---|
f9df685cde | |||
17c5b0f152 | |||
c709883f3f | |||
aed5de4d50 | |||
ba27cc6571 |
@ -701,12 +701,14 @@ int main (int argc, char ** argv)
|
|||||||
if ( do_su3 ) {
|
if ( do_su3 ) {
|
||||||
// empty for now
|
// empty for now
|
||||||
}
|
}
|
||||||
|
#if 1
|
||||||
int sel=2;
|
int sel=2;
|
||||||
std::vector<int> L_list({8,12,16,24});
|
std::vector<int> L_list({8,12,16,24});
|
||||||
|
#else
|
||||||
//int sel=1;
|
int sel=1;
|
||||||
// std::vector<int> L_list({8,12});
|
std::vector<int> L_list({8,12});
|
||||||
|
#endif
|
||||||
|
int selm1=sel-1;
|
||||||
std::vector<double> robust_list;
|
std::vector<double> robust_list;
|
||||||
|
|
||||||
std::vector<double> wilson;
|
std::vector<double> wilson;
|
||||||
@ -785,7 +787,8 @@ int main (int argc, char ** argv)
|
|||||||
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
||||||
|
|
||||||
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
||||||
std::cout<<GridLogMessage << " Comparison point result: " << dwf4[sel]/NN << " Mflop/s per node"<<std::endl;
|
std::cout<<GridLogMessage << " Comparison point result: " << 0.5*(dwf4[sel]+dwf4[selm1])/NN << " Mflop/s per node"<<std::endl;
|
||||||
|
std::cout<<GridLogMessage << " Comparison point is 0.5*("<<dwf4[sel]/NN<<"+"<<dwf4[selm1]/NN << ") "<<std::endl;
|
||||||
std::cout<<std::setprecision(3);
|
std::cout<<std::setprecision(3);
|
||||||
std::cout<<GridLogMessage << " Comparison point robustness: " << robust_list[sel] <<std::endl;
|
std::cout<<GridLogMessage << " Comparison point robustness: " << robust_list[sel] <<std::endl;
|
||||||
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
std::cout<<GridLogMessage << "=================================================================================="<<std::endl;
|
||||||
|
@ -157,7 +157,9 @@ void CartesianCommunicator::ShmInitGeneric(void){
|
|||||||
perror("mmap failed ");
|
perror("mmap failed ");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
#ifdef MADV_HUGEPAGE
|
||||||
if (!Hugepages ) madvise(ShmCommBuf,MAX_MPI_SHM_BYTES,MADV_HUGEPAGE);
|
if (!Hugepages ) madvise(ShmCommBuf,MAX_MPI_SHM_BYTES,MADV_HUGEPAGE);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
ShmBufStorageVector.resize(MAX_MPI_SHM_BYTES);
|
ShmBufStorageVector.resize(MAX_MPI_SHM_BYTES);
|
||||||
ShmCommBuf=(void *)&ShmBufStorageVector[0];
|
ShmCommBuf=(void *)&ShmBufStorageVector[0];
|
||||||
|
@ -215,8 +215,10 @@ void CartesianCommunicator::Init(int *argc, char ***argv) {
|
|||||||
perror("open hugetlbfs");
|
perror("open hugetlbfs");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
int mmap_flag = MAP_SHARED ;
|
||||||
int mmap_flag = MAP_SHARED |MAP_POPULATE;
|
#ifdef MAP_POPULATE
|
||||||
|
mmap_flag|=MAP_POPULATE;
|
||||||
|
#endif
|
||||||
#ifdef MAP_HUGETLB
|
#ifdef MAP_HUGETLB
|
||||||
if ( Hugepages ) mmap_flag |= MAP_HUGETLB;
|
if ( Hugepages ) mmap_flag |= MAP_HUGETLB;
|
||||||
#endif
|
#endif
|
||||||
@ -249,7 +251,10 @@ void CartesianCommunicator::Init(int *argc, char ***argv) {
|
|||||||
if ( fd < 0 ) { perror("failed shm_open"); assert(0); }
|
if ( fd < 0 ) { perror("failed shm_open"); assert(0); }
|
||||||
ftruncate(fd, size);
|
ftruncate(fd, size);
|
||||||
|
|
||||||
int mmap_flag = MAP_SHARED|MAP_POPULATE;
|
int mmap_flag = MAP_SHARED;
|
||||||
|
#ifdef MAP_POPULATE
|
||||||
|
mmap_flag |= MAP_POPULATE;
|
||||||
|
#endif
|
||||||
#ifdef MAP_HUGETLB
|
#ifdef MAP_HUGETLB
|
||||||
if (Hugepages) mmap_flag |= MAP_HUGETLB;
|
if (Hugepages) mmap_flag |= MAP_HUGETLB;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user