Giter Club home page Giter Club logo

chenxuhao / gardenia Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 8.0 1.26 MB

GARDENIA: Graph Analytics Repository for Designing Efficient Next-generation Accelerators

License: MIT License

Makefile 1.72% C 4.05% C++ 53.98% Cuda 39.67% Shell 0.58%
accelerators benchmark-suite benchmarking computer-architecture cuda gpu-computing graph-algorithms graph-analytics heterogeneous-parallel-programming opencl openmp parallel-computing sparse-matrix xeon-phi

gardenia's People

Contributors

chenxuhao avatar mjyan0720 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gardenia's Issues

build error

running make in root dir asks for gem5/m5ops.h.
running make in bfs gives "ambiguous definition error"->

../../include/cutil_subset.h(108): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(108): error: variable "printf" has already been defined

../../include/cutil_subset.h(108): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(108): error: expected a ")"

../../include/cutil_subset.h(109): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(109): error: variable "printf" has already been defined

../../include/cutil_subset.h(109): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(109): error: expected a ")"

../../include/cutil_subset.h(110): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(110): error: variable "printf" has already been defined

../../include/cutil_subset.h(110): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(110): error: expected a ")"

../../include/cutil_subset.h(111): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(111): error: variable "printf" has already been defined

../../include/cutil_subset.h(111): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(111): error: expected a ")"

../../include/cutil_subset.h(112): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(112): error: variable "printf" has already been defined

../../include/cutil_subset.h(112): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(112): error: expected a ")"

../../include/cutil_subset.h(113): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(113): error: variable "printf" has already been defined

../../include/cutil_subset.h(113): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(113): error: expected a ")"

../../include/cutil_subset.h(114): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(114): error: variable "printf" has already been defined

../../include/cutil_subset.h(114): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(114): error: expected a ")"

../../include/cutil_subset.h(115): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(115): error: variable "printf" has already been defined

../../include/cutil_subset.h(115): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(115): error: expected a ")"

../../include/cutil_subset.h(117): error: this declaration has no storage class or type specifier

../../include/cutil_subset.h(117): error: variable "printf" has already been defined

../../include/cutil_subset.h(117): error: a value of type "const char *" cannot be used to initialize an entity of type "int"

../../include/cutil_subset.h(117): error: expected a ")"

../../include/cutil_subset.h(118): error: expected a declaration

../../include/cutil_subset.h(119): error: expected a declaration

../../include/worklistc.h(15): error: identifier "zero" is undefined

CUDA and GPGPU-Sim versions

First, it is okay for some CUDA applications without downgrading the GPGPU-Sim or CUDA versions for compatibility issues.
For example, the following commands are used to obtain a properly working executable for the BFS application.

  1. nvcc linear_base.cu -o linear_base.o -lcudart -arch=sm_70 -c -I ../../include -I ../../cub -> this gives us the compiled linear_base.o file. Do not forget to link with cudart and specify your architectural specs.
  2. gcc main.cc -o main.o -I ../../include -I ../../cub -> this gives us the compiled main.o file.
  3. gcc verifier.cc -o verifier.o -I ../../include -I ../../cub -> this gives us the compiled verifier.o file.
    Lastly, you need to link those executables with the following command:
  4. nvcc linear_base.o main.o verifier.o -o bfs_linear_base -L /usr/lib64 -lcudart -arch=sm_70

Also, the below command shows how I executed your benchmark BFS code on the simulator.
./bfs_linear_base mtx ../CudaBenchmarks/gardenia/datasets/soc-LiveJournal1/soc-LiveJournal1 0 0 0

You may fix the correct path of the soc-LiveJournal1.mtx file. There is an additional soc-LiveJournal1 folder holding the soc-LiveJournal1.mtx file.

Thank you for the benchmark. I hope you have an excellent year.

undefined reference to `BCSolver(Graph&, int, float*)'

Could you please update the implementations when you can reproduce the following error ? Thanks.

make bc_ocl_base
g++ -Wall -fopenmp -O3 -std=c++11 -I../../include -I ../../cub main.o ocl_base.o verifier.o -o bc_ocl_base -lOpenCL
main.o: In function `main':
main.cc:(.text.startup+0x11a): undefined reference to `BCSolver(Graph&, int, float*)'

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.