ashwinktpu / StarPlat

16 stars 16 forks source link

Building Project #5

Open mrprajesh opened 2 years ago

mrprajesh commented 2 years ago

Build cuda

git clone -b cuda https://github.com/nibeditabh/GraphDSL.git
cd GraphDSL/src
make cuda
./finalcode -f ../graphcode/sssp_dsl -b cuda 
#this creates the files in graphcode/generated_cuda/
#adding ssspMain.cxx file. compile nvcc ssspMain.cxx and run ./main
# sssp = bc | tc | pr can be sustituted by any

A short video. https://www.loom.com/share/83a71b120361434ebc19d89f606bd586

mrprajesh commented 2 years ago

Build MPI

// Sai or Eb to confirm this..

  1. git clone -b currentMPI https://github.com/nibeditabh/GraphDSL.git
    mkdir bin
  2. remove -ll in src/Makefile at line8

  3. comment out omp backend header in src/parser/includeHeader at line 12

  4. add extern "C" int yyparse (void); at line10 in src/parser/lrparser.y

  5. make ./finalcode ../graphcode/sssp_dsl

sainitishkumar commented 2 years ago
  1. No need to remove -ll in Makefile. // it was working fine in my system

Other changes:

  1. Remove id1 in src/parser/lrparser.y line number 64
  2. Rename the variable count in src/backends/backend_mpi/mpi_cppgenerator.cpp to a less commonly used name Ex: count , cnt etc.