- add
-gin Makefile
COMMON_FLAGS += -std=c++11
COMMON_FLAGS += -std=c++11 -g
| name: "ResNet-50D" | |
| layer { | |
| name: "data" | |
| type: "Data" | |
| top: "data" | |
| top: "label" | |
| include { | |
| phase: TRAIN | |
| } | |
| transform_param { |
| #!/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 |
| 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" |
| time sh -c "dd if=/dev/zero of=/disk/path bs=64k count=125000 && sync" |
| # Black 0;30 Dark Gray 1;30 | |
| # Red 0;31 Light Red 1;31 | |
| # Green 0;32 Light Green 1;32 | |
| # Brown/Orange 0;33 Yellow 1;33 | |
| # Blue 0;34 Light Blue 1;34 | |
| # Purple 0;35 Light Purple 1;35 | |
| # Cyan 0;36 Light Cyan 1;36 | |
| # Light Gray 0;37 White 1;37 | |
| RED='\033[0;31m' |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| const PORT = "7777" | |
| func main() { | |
| fmt.Println("Start listening on port " + PORT) |
| #include <sys/time.h> | |
| #include <sys/types.h> | |
| #include <sys/stat.h> | |
| #include <sys/mman.h> | |
| #include <fcntl.h> | |
| #include <stdio.h> | |
| #include <unistd.h> | |
| #define BUFFER_SIZE (1 * 1024 * 1024) | |
| #define ITERATIONS (10 * 1024) |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| int a, b, c; | |
| }Int3; | |
| int comp (const void * elem1, const void * elem2) { | |
| Int3 f = *((Int3*)elem1); | |
| Int3 s = *((Int3*)elem2); |
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| #define IndexType int | |
| void merge_local_vectors(vector<IndexType> &first, vector<IndexType> &second, int pair_size1, int pair_size2, int key1, int key2) { | |
| int ssz1 = first.size(), ssz2 = second.size(); | |
| int i = 0, j = 0; |