- add
-gin Makefile
COMMON_FLAGS += -std=c++11
COMMON_FLAGS += -std=c++11 -g
| time sh -c "dd if=/dev/zero of=/disk/path bs=64k count=125000 && sync" |
| module swap PrgEnv-cray PrgEnv-intel | |
| module load hdf5/1.8.21 | |
| wget https://support.hdfgroup.org/ftp/HDF5/current/src/unpacked/examples/h5_crtdat.c | |
| gcc h5_crtdat.c | |
| ################################################################## | |
| # | |
| #h5_crtdat.c:19:18: fatal error: hdf5.h: No such file or directory | |
| # #include "hdf5.h" |
| #!/bin/bash | |
| module use -a /project/k1341/.usr/local/share/modulefiles | |
| module load common | |
| # clear previous build | |
| LOCALROOT=/project/k1341/.usr/local | |
| rm -rf $LOCALROOT/bin $LOCALROOT/lib $LOCALROOT/lib64 $LOCALROOT/include $LOCALROOT/share/OpenCV $LOCALROOT/doc $LOCALROOT/man | |
| # protobuf |
| name: "ResNet-50D" | |
| layer { | |
| name: "data" | |
| type: "Data" | |
| top: "data" | |
| top: "label" | |
| include { | |
| phase: TRAIN | |
| } | |
| transform_param { |
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <iostream> | |
| #include <vector> | |
| #include <mpi.h> | |
| #include <ctime> | |
| #include <cmath> | |
| using namespace std; |
| sinfo --partition=batch --format="%n %f" | grep "intel_gold_6148" | wc -l |
| find -name "resnet_50_1024_nodes_32k_batch_solver_iter_*" -type f -exec du -ch {} + | grep total$ |
| var1="12:08:18.092077" | |
| var2="12:08:18.405611" | |
| # result : x.xxxx secs | |
| difference=$(( $( date -d "$var2" "+%N" ) - $( date -d "$var1" "+%N" ) )); echo "scale=4; $difference/10^9" | bc |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; | |
| #define IndexType int | |
| typedef struct Int1 { IndexType x[1]; } Int1; | |
| typedef struct Int2 { IndexType x[2]; } Int2; |