Commit Graph

49 Commits

Author SHA1 Message Date
Tom Lin
65b8b51b35 Move CMakeList.txt to top level 2021-12-03 13:26:09 +00:00
Tom Lin
717cc40c2c Move all C++ impl. to ./cpp 2021-05-23 07:21:21 +01:00
Tom Lin
cc16547e4d Add install target for CMake 2021-05-10 17:50:36 +01:00
Andrei Poenaru
f279f58a72 Improve CMake messages 2021-03-30 17:08:03 +03:00
Tom Lin
23f343fa15 Default to C++11 2021-03-24 17:20:11 +00:00
Tom Lin
14aefecc57 Re-add all compile and arch dependent flags
Fix ACC not linking on CMake < 3.16
Fix CUDA warnings for CMP0104 and avoid repeated -O[n] flags
Fix ComputeCpp not picking up custom flags
[CI] Highlight compiler warnings
[CI] Don't skip remaining tests when one fails
[CI] Add CMake 3.13, 3.15, 3.18 checks
2021-03-11 15:46:23 +00:00
Tom Lin
cda17d7b30 Add -march=native 2021-03-08 20:19:44 +00:00
Tom Lin
6536c1736a Initial CMake+CI integration 2021-03-05 13:41:35 +00:00
Tom Deakin
1d4b809b44 Remove CMake from project
CMake is unable to use multiple compilers within a single build.
We require building multiple binaries, one for each model, and as
such they often require different compilers for each. Therefore
we feel it is simpler to provide a simple, sample Makefile for each
model. Some common configurations will be specalised in due course.
2017-02-23 14:58:34 +00:00
James Price
caf367f8fb Remove broken common.h generation from CMake build 2017-01-30 16:12:09 +00:00
James Price
b09b90f6fc Merge remote-tracking branch 'origin' into kernel-dot 2016-10-28 21:07:57 +01:00
James Price
cce8e78cae Merge pull request #12 from Ruyk/master
Updated the SYCL Stream benchmark with latest ComputeCpp CE 0.1.1 Edition
2016-10-28 21:06:34 +01:00
Tom Deakin
e5b67ac969 Version bump 2016-10-25 12:22:01 +01:00
Tom Deakin
963f3abfa0 Version bump 2016-10-24 13:52:03 +01:00
Ruyman Reyes
23a43bfa6d Adding support for ComputeCpp CE
This patch updates the CMake building options to support
the ComputeCpp Community Edition 0.1, including the FindComputeCpp
CMake module provided with the ComputeCpp SDK.

In order to build with ComputeCpp, only the standard CMake flags from
the SDK are required:

cmake ../
  -DHAS_SYCL=ON \
  -DCOMPUTECPP_PACKAGE_ROOT_DIR=/path/to/computecpp/package \
  -DCMAKE_MODULE_PATH=GPU-STREAM/cmake/Modules/
2016-10-12 17:51:41 +01:00
pensun
a1f9d9ece7 Add support of HIP version of GPU-STREAM.
This commit was tested with HIP developer preview branch.
2016-09-05 23:41:01 -05:00
James Price
1ec98b4496 Use 'Release' if CMAKE_BUILD_TYPE not specified 2016-07-04 15:46:00 +01:00
James Price
525fb4d5e2 Fix out-of-tree builds 2016-06-30 17:04:23 +01:00
Tom Deakin
2033f3f0c6 Break RAJA build but fix all the others.. 2016-05-12 16:37:06 +01:00
Tom Deakin
2001ab5fb1 Build against a RAJA installation in the CMake build system 2016-05-12 15:40:22 +01:00
Tom Deakin
d75084b753 Fix Kokkos CMake so it works.. 2016-05-12 12:35:47 +01:00
Tom Deakin
2381f059ed Set KOKKOS_PATH to build Kokkos version 2016-05-12 12:31:16 +01:00
Tom Deakin
f6fca3ac06 Add Kokkos building to CMake config 2016-05-12 12:30:06 +01:00
James Price
3ebad06bd4 [SYCL] Fix detection of CL/sycl.hpp for C++14 versions 2016-05-11 22:22:20 +01:00
James Price
7cd14f480d [SYCL] Auto-detect presence of CL/sycl.hpp and ComputeCpp 2016-05-11 22:00:04 +01:00
Tom Deakin
5638cbb283 Check for OpenMP support and build OMP3 version 2016-05-11 17:49:48 +01:00
Tom Deakin
bf9c6fb6cd Add -fopenacc flag on linking with GCC compiler 2016-05-11 17:21:52 +01:00
Tom Deakin
494e89d16b Add placeholder banners for CMake build systems to fix 2016-05-11 16:02:34 +01:00
Tom Deakin
9b2a586e08 Add rule to build OMP4.5 on Cray 2016-05-11 15:57:39 +01:00
Tom Deakin
eae8da57ac Delete commented out C++ flag for OpenACC as no longer needed 2016-05-11 15:57:20 +01:00
Tom Deakin
e095cb67f8 Remove ugly CMake endif text in parenthesis 2016-05-11 13:37:12 +01:00
Tom Deakin
bf29b02d35 Add banners in CMakeLists file so easy to spot build rules for versions 2016-05-11 13:35:24 +01:00
Tom Deakin
8a195b6416 Remove printout of compiler id in cmake 2016-05-11 13:35:12 +01:00
Tom Deakin
e0ca56bd67 Set the C++11 flag when using the Cray compiler 2016-05-11 13:33:01 +01:00
Tom Deakin
8d45e61f6c Check for OpenACC support by checking the various compiler flags 2016-05-11 13:20:15 +01:00
Tom Deakin
1a9225ca95 If building CUDA on Darwin with Xcode 7.3.1 skip becuase CUDA doesn't work this version 2016-05-11 12:54:12 +01:00
James Price
fb8f06e683 [SYCL] Pass -no-serial-memop to compute++ to squelch warning 2016-05-06 22:33:18 +01:00
James Price
d4b3b3533c Update SYCL version to work with ComputeCpp
Still needs proper CMake rules and kernel names need to be fixed for
multiple template instantiations.
2016-05-06 00:38:30 +01:00
Tom Deakin
48cae0cbc1 Make sure CUDA nvcc builds with C++11 2016-05-03 15:20:26 +01:00
Tom Deakin
31819b7778 Add bones of OpenACC in CMake config 2016-05-03 15:07:51 +01:00
James Price
40a0a6551d Remove extra -std=c++11 from CMake build 2016-05-03 14:46:08 +01:00
James Price
da4f918788 Add initial SYCL implementation 2016-05-03 14:45:13 +01:00
Tom Deakin
21c9022a3f Keep C++11 flag explicitely defined in Cmake 2016-05-03 12:24:33 +01:00
Tom Deakin
57ea4b8cae Require CMake 3.2 so can check for C++11 nicely 2016-05-03 12:17:33 +01:00
Tom Deakin
1bd27428bd Require CUDA 7 for C++11 support 2016-05-03 12:17:21 +01:00
Tom Deakin
8ce15a28aa Update CMake with better binary name and source location 2016-05-03 11:45:25 +01:00
Tom Deakin
a1cab96c57 Define the implementaiton strings in each implementation header 2016-04-28 17:20:40 +01:00
Tom Deakin
7006871cbe Get version from CMake configued header and only build implementations which have the runtime around 2016-04-28 17:10:14 +01:00
Tom Deakin
b9e70e11ab Add CMakeLists.txt file with CUDA and OCL builds 2016-04-28 16:58:32 +01:00