Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d54fcf9
commit 3eb8862
Showing
46 changed files
with
1,686 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
PS_PATH = ../../../src/ | ||
INC = -I$(PS_PATH) | ||
|
||
#CXX = time -p FCCpx | ||
CXX = time -p mpiFCCpx | ||
CXXFLAGS = -std=c++11 -Kfast -Ksimd=2 -Krestp=all | ||
CXXFLAGS += -DPARTICLE_SIMULATOR_THREAD_PARALLEL -Kopenmp | ||
CXXFLAGS += -DPARTICLE_SIMULATOR_MPI_PARALLEL | ||
|
||
# fdps-autotest-set-vars (DO NOT CHANGE THIS LINE) | ||
|
||
# Simulation control macros | ||
CXXFLAGS += -DENABLE_VARIABLE_SMOOTHING_LENGTH | ||
CXXFLAGS += -DUSE_ENTROPY | ||
CXXFLAGS += -DUSE_BALSARA_SWITCH | ||
#CXXFLAGS += -DUSE_PRESCR_OF_THOMAS_COUCHMAN_1992 | ||
CXXFLAGS += -DISOTHERMAL_EOS | ||
|
||
CXXFLAGS += -DINITIAL_CONDITION=0 | ||
#CXXFLAGS += -DINITIAL_CONDITION=1 | ||
#CXXFLAGS += -DINITIAL_CONDITION=2 | ||
#CXXFLAGS += -DINITIAL_CONDITION=3 | ||
|
||
CXXFLAGS += -DREAD_DATA_WITH_BYTESWAP | ||
|
||
#use_phantom_grape_x86 = yes | ||
|
||
# fdps-autotest-set-vars (DO NOT CHANGE THIS LINE) | ||
|
||
ifeq ($(use_phantom_grape_x86),yes) | ||
PG_ROOT = $(PS_PATH)/phantom_grape_x86/G5/newton/libpg5 | ||
INC += -I$(PG_ROOT) | ||
CXXFLAGS += -DENABLE_PHANTOM_GRAPE_X86 | ||
LIBS = -L$(PG_ROOT) -lpg5 | ||
PG_BUILD = cd $(PG_ROOT) && $(MAKE) distclean libpg5.a | ||
PG_CLEAN = cd $(PG_ROOT) && $(MAKE) distclean | ||
else | ||
PG_BUILD = | ||
PG_CLEAN = | ||
endif | ||
|
||
# Job submission variables | ||
QSUB = pjsub | ||
JOB_FILE_NAME = job.K.sh | ||
WORKDIR = /data/ra000008/namekata/sample/c++/nbody+sph | ||
|
||
CPPOBJS = $(patsubst %.cpp, %.o, $(wildcard *.cpp)) | ||
CPPHDRS = $(wildcard *.h) $(wildcard *.hpp) | ||
PROGRAM = nbodysph.out | ||
|
||
.PHONY: clean all | ||
|
||
all: $(CPPOBJS) $(CPPHDRS) | ||
$(PG_BUILD) | ||
$(CXX) $(CXXFLAGS) $(CPPOBJS) -o $(PROGRAM) $(LIBS) $(INC) | ||
mkdir -p $(WORKDIR) | ||
mv $(PROGRAM) $(WORKDIR) | ||
cp $(JOB_FILE_NAME) $(WORKDIR) | ||
cp -fR ./magi_data $(WORKDIR)/ | ||
cd $(WORKDIR); $(QSUB) $(JOB_FILE_NAME) | ||
|
||
%.o: %.cpp $(CPPHDRS) | ||
$(CXX) -c $< $(CXXFLAGS) $(INC) | ||
|
||
clean: | ||
rm -f $(CPPOBJS) | ||
|
||
distclean: clean | ||
$(PG_CLEAN) | ||
rm -f $(PROGRAM) | ||
rm -rf result | ||
|
||
# fdps-autotest-run (DO NOT CHANGE THIS LINE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#!/bin/bash -x | ||
#PJM --name "nbodysph.cpp" | ||
#PJM -o "00stdout-%j.log" | ||
#PJM -j | ||
#PJM --norestart | ||
#---- for test ---- | ||
##PJM --rsc-list "node=64" | ||
##PJM --rsc-list "elapse=00:30:00" | ||
##PJM --rsc-list "rscgrp=small" | ||
#---- for product ---- | ||
#PJM --rsc-list "node=512" | ||
#PJM --rsc-list "elapse=24:00:00" | ||
#PJM --rsc-list "rscgrp=large" | ||
#---- | ||
#PJM -m b,e | ||
#PJM --mail-list daisuke.namekata@riken.jp | ||
#PJM --stg-transfiles all | ||
#PJM --stgin "./nbodysph.out ./" | ||
#PJM --stgin-dir "./magi_data/dat ./magi_data/dat" | ||
#PJM --stgout-dir "./result ./result" | ||
#PJM -s | ||
#PJM --spath "stat-%j.log" | ||
# | ||
. /work/system/Env_base | ||
export OMP_STACKSIZE=512M | ||
mkdir -p result | ||
# Perform the job | ||
#mpiexec -n 64 ./nbodysph.out -Wl,-T | ||
mpiexec -n 512 ./nbodysph.out -Wl,-T | ||
|
||
# [Notes] | ||
# 1) In the K-computer, 1 node have 1 CPU which has 8 cores. | ||
# 2) "-j" option merges STDERR to STDOUT. | ||
# 3) "--norestart" option stops the system restarting this job. | ||
# 4) The group of resource is specified by the `--rsc-list "rscgrp="` option. | ||
# We have to select a resource group from the following: | ||
# ----------------------------------------------------------- | ||
# Resource group | Max. # of nodes | Max. # of cores | ||
# ----------------------------------------------------------- | ||
# small/interact | 384 | 3072 | ||
# micro | 1152 | 9216 | ||
# large | 36864 | 294912 | ||
# huge | 82944 | 663552 | ||
# ----------------------------------------------------------- | ||
# Note that the resource group `micro` must be performed in a dedicated | ||
# directory (/scratch/groupname). | ||
# | ||
# 5) If "-m" option is given, the system informs the user abount job status | ||
# by e-mails. The e-mail address should be specified by "--mail-list" | ||
# option. | ||
# 6) "-s" option activates the output of statistical information on job. | ||
# We can specify the name of output file by "--spath" option. | ||
# 7) With "-Wl,-T" option, we can perfrom IO with little endian. | ||
# 8) The profiling data created by fipp can be converted into | ||
# a text form by the command: | ||
# $ fipppx -Icpu,balance,call,hwm -A -d profile_data | ||
# On the other hand, that created by fapp can be converted by the command: | ||
# $ fapppx -Impi,hwm -ttext -o profile.txt -A -d profile_data | ||
# | ||
# |
Oops, something went wrong.