Giter Club home page Giter Club logo

Comments (4)

DavidPoliakoff avatar DavidPoliakoff commented on July 19, 2024

Hey, I'm running into this as well. I get RAJA to build if I add

set_source_files_properties(main.cpp PROPERTIES CUDA_SOURCE_PROPERTY_FORMAT OBJ)

But then the OMP3 build crashes. Don't know whether it's possible to fix along those lines.

from babelstream.

tomdeakin avatar tomdeakin commented on July 19, 2024

We haven't found a way of getting RAJA to play nicely with CMake; we also find that CUDA breaks if you add that line. There are lots of other issues with the CMake too as lots of flags are missing for many of the models. We are just working out what it going to work best and what is needed across the range of devices across the platforms we use.

In the mean time, we're building manually with this command:
nvcc --expt-extended-lambda -arch=sm_52 -O3 -std=c++11 -DUSE_RAJA main.cpp RAJAStream.cpp -x cu -L$RAJA_PATH/lib -lRAJA -Xcompiler -fopenmp

You may also have to make sure common.h exists. It just contains
#define VERSION_STRING 2.1

from babelstream.

DavidPoliakoff avatar DavidPoliakoff commented on July 19, 2024

Hey Tom, thanks for the update.

In our current implementation we have an (everchanging) custom FindCUDA.cmake which we use to handle a lot of ugliness (including how to do CUDA compilation with the Clang CUDA compiler). I might file an issue on our repo about this, it seems like the kind of thing that ought to work.

Honestly, some of the problem is that we're all reconciling different CUDA oddities, and resolving them in different ways. Let me get back to this when I have time, but thanks again, you've brought a lot of good feedback to the project, it's highly appreciated

from babelstream.

tomdeakin avatar tomdeakin commented on July 19, 2024

Fixed in v3.1. We've moved away from CMake so can better control how we build against RAJA. New version works for all combinations we tried in our usual results matrix.

from babelstream.

Related Issues (20)

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.