Comments (4)
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.
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.
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.
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)
- CMake Error: Kokkos requires C++17 or newer but requested 14 HOT 1
- Time array initialisation and read back HOT 1
- Add managed memory version for HIP
- `-DMEM` is ignored for CUDA HOT 1
- Question regarding copyright information HOT 1
- `CMAKE_CUDA_FLAGS` is actually a string fragment and not a list
- Bump version to 5.0
- TBB dependency the "right" way? HOT 1
- I am confused about the initElapsedS & readElapsedS. HOT 4
- RAJA 2023.6.01 build issues HOT 2
- Add flag alias for AdaptiveCpp HOT 1
- Use static thread scheduling for Julia
- Add option for disabling memory requirement check for OpenCL
- PR for post-processing for BabelStream
- "serial" model missing
- Support clang++ for CUDA
- Bandwidth reporting is broken on Julia
- initElapsedS & readElapsedS calculation right? HOT 3
- Add clang-format HOT 3
- Refactor malloc allocation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babelstream.