Giter VIP home page Giter VIP logo

cpu_gpu_project's Introduction

Test-Framework-for-LDBC

Based on graph algorithm library of RUC

Environment

  • Linux (Ubuntu 22.04+)
  • CUDA 11.8
  • CMake 3.9+

File Structure

  • include/: header files
  • src/CPU_adj_list: example of CPU version
  • src/GPU_csr: example of GPU version
  • src/LDBC: test framework for LDBC dataset

Build & Run

By specifying compilation options, you can choose to compile the CPU version or the GPU version, or both.

mkdir build
cd build
cmake .. -DBUILD_CPU=OFF -DBUILD_GPU=ON # Compile the GPU version only
make
./bin_gpu/Test_GPU

By default, the program will compile the CPU version only.

mkdir build
cd build
cmake .. # Compile the CPU version only by default
make
./bin_cpu/Test_CPU

Of course, you can compile both the CPU version and the GPU version, if you have both the CPU and the GPU environment.

mkdir build
cd build
cmake .. -DBUILD_CPU=ON -DBUILD_GPU=ON # Compile both the CPU version and the GPU version
make
./bin_cpu/Test_CPU
./bin_gpu/Test_GPU

Then the program will ask you to input the directory and the graph name,

Note that the directory should contain the configuration file, the graph data, and the necessary baseline results.

Please input the data directory: # The program asking
/somewhere/ # Input the configuration file name
Please input the graph name: # The program asking
datagen-7_5-fb # Input the graph name which you want to test

cpu_gpu_project's People

Contributors

csliupeng avatar jongmelon avatar rucdatascience avatar toziki avatar haitaoshen66 avatar mdnddd avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.