Code Monkey home page Code Monkey logo

dyfuse_model's Introduction

Build instructions

source cori_modules.sh
cd external/
chmod +x install-*
NUM_THREADS=64 ./install-starpu.sh
NUM_THREADS=64 ./install-GraphBLAS.sh
cd ..
mkdir build
cd build/
mkdir release
cd release/
CC=clang CXX=clang++ cmake ../.. -DCMAKE_BUILD_TYPE=Release -DSTARPU_HOME=$PWD/../../external/starpu/release-srki-fork
make -j

above are forked from https://github.com/srki/grb-fusion.git

DyFuse_model

run with scheduler:

build simple_model

#model

  1. process train data (optional... oringal files are too large to git here)
  • cd model
  • python process_traindata_for_MLP.py
  • ls data/ancilla_classification_5/ data/ancilla_classification_5/1D_thres_faster_base64_class_16_train_data_tri.csv data/ancilla_classification_5/1D_thres_faster_base64_class_1_train_data_tri.csv data/ancilla_classification_5/1D_thres_faster_base64_class_32_train_data_tri.csv data/ancilla_classification_5/1D_thres_faster_base64_class_64_train_data_tri.csv data/ancilla_classification_5/1D_thres_faster_base64_class_8_train_data_tri.csv
  1. python tricnt_mxm_w_mask.py (This includes KNN, regression, and searching for schedule order) Regression models are saved in kernel/ancilla/linear*1D_thres_faster_base64_class*_train_data_tri.csv.pkl

  2. ouputs are under model/res/ancilla/ each matrix has two files, e.g.,

  3. cat model/res/ancilla/new_tri_block_roadNet-CA.mtx_1013.csv 1,2 // means using 2 input blocks. 1D blocking.

  4. cat model/res/ancilla/new_tri_roadNet-CA.mtx_1013.csv // 2 input blocks => 4 output blocks 0,32 // block 0 uses 32 threads 3,32 // block 3 uses 32 threads 99999,99999 // scheduler wait for all, and then split worker 1,1 // block 1 uses 1 thread

  5. the above two files are the input for DyFuse, e.g., apps/simple_model/mxm_schedule.cpp

dyfuse_model's People

Contributors

srki avatar nanding0701 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.