Comments (4)
Please take a look at Geometry.hpp
line 37. Make sure that HPCG_NO_LONG_LONG
is not defined so that sizeof(global_int_t)
is at least 8. It seems that your global indices use 32-bit integers. More information about your build would help indicate the specific flag that caused this.
from hpcg.
Thanks for your reply, I have a small mistake in my status, I updated it. I sure the HPCG_NO_LONG_LONG is not defined and sizeof(global_int_t) is 8
When I set nx = 440, ny=424, nz=424, the program run well. But when I increase ny to 440, it crashes. It also happens when I set nx=ny=nz=512. I add debug and below are the out put:
// If this assert fails, it most likely means that the global_int_t is set to int and should be set to long long
// This assert is usually the first to fail as problem size increases beyond the 32-bit integer range.
printf("LIEM %d %lld\n", sizeof(totalNumberOfNonzeros), totalNumberOfNonzeros);
assert(totalNumberOfNonzeros>0); // Throw an exception of the number of nonzeros is less than zero (can happen if int overflow)
Output:
nx = 440 ny = 424 nz =424
LIEM 8 34105190392
LIEM 8 34105190392
LIEM 8 34105190392
LIEM 8 34105190392
nx = 440 ny = 440 nz = 424
LIEM 8 -33326285448
LIEM 8 -33326285448
LIEM 8 -33326285448
LIEM 8 -33326285448
LIEM 8 -33326285448
LIEM 8 -33326285448
from hpcg.
----------------------------------------------------------------------
- shell --------------------------------------------------------------
----------------------------------------------------------------------
SHELL = /bin/sh
CD = cd
CP = cp
LN_S = ln -s -f
MKDIR = mkdir -p
RM = /bin/rm -f
TOUCH = touch
----------------------------------------------------------------------
- HPCG Directory Structure / HPCG library ------------------------------
----------------------------------------------------------------------
TOPdir = .
SRCdir = $(TOPdir)/src
INCdir = $(TOPdir)/src
BINdir = $(TOPdir)/bin
----------------------------------------------------------------------
- Message Passing library (MPI) --------------------------------------
----------------------------------------------------------------------
MPinc tells the C compiler where to find the Message Passing library
header files, MPlib is defined to be the name of the library to be
used. The variable MPdir is only used for defining MPinc and MPlib.
MPdir = /root/opt/openmpi
MPinc = -I$(MPdir)/include
MPlib = $(MPdir)/lib/libmpi.so
----------------------------------------------------------------------
- HPCG includes / libraries / specifics -------------------------------
----------------------------------------------------------------------
HPCG_INCLUDES = -I$(INCdir) -I$(INCdir)/$(arch) $(MPinc)
HPCG_LIBS =
- Compile time options -----------------------------------------------
-DHPCG_NO_MPI Define to disable MPI
-DHPCG_NO_OPENMP Define to disable OPENMP
-DHPCG_CONTIGUOUS_ARRAYS Define to have sparse matrix arrays long and contiguous
-DHPCG_DEBUG Define to enable debugging output
-DHPCG_DETAILED_DEBUG Define to enable very detailed debugging output
By default HPCG will:
*) Build with MPI enabled.
*) Build with OpenMP enabled.
*) Not generate debugging output.
HPCG_OPTS = -DHPCG_ENABLE_DETAILED_DEBUG
----------------------------------------------------------------------
HPCG_DEFS =
----------------------------------------------------------------------
- Compilers / linkers - Optimization flags ---------------------------
----------------------------------------------------------------------
CXX = mpicxx
CXXFLAGS = $(HPCG_DEFS) -v -O3 -ffast-math -ftree-vectorize -ftree-vectorizer-verbose=0 -fopenmp
LINKER = $(CXX)
LINKFLAGS = $(CXXFLAGS)
ARCHIVER = ar
ARFLAGS = r
RANLIB = echo
----------------------------------------------------------------------
from hpcg.
The issue is local_int_t is set to int not long long type. How can I run test by 64/64 - global and local are 64-bit without change source code?
from hpcg.
Related Issues (20)
- compile error HOT 2
- Unit tests in `unittesting` directory fail to compile HOT 2
- I get a problem in the build step HOT 1
- If the --rt parameter is read from file, it does not get used HOT 1
- There exits code bug in graph multicoloring in OptimizeProblem.cpp
- Matlab example HOT 1
- HPCG Memory Output HOT 4
- Volta-enabled HPCG compilation HOT 1
- Undefined data attribute in parallel region with default(none) HOT 2
- HPCG Cuda Binary with MPI support not working properly for multiple hosts HOT 1
- Does having warnings invalidate the benchmark results ? HOT 1
- Visualizing computational results ? HOT 1
- Formula to derive HPCG problem size - that fits in system memory HOT 1
- Number of Smoother Steps HOT 1
- HPCG Cuda Binary with multiple GPUs? HOT 5
- Number of OMP Threads for MPI_GCC_OMP HOT 2
- ComputeResidual.cpp:60:5: error: variable 'n' must have explicitly specified data sharing attributes HOT 4
- Loop upper bound implicitly shared by GCC causes error in ComputerResidual.cpp:60
- Hello. How to generate trace for HPCG? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hpcg.