Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danielecesarini committed Mar 11, 2020
0 parents commit 7691025
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
install/
30 changes: 30 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 3.0.2)

project(stream
VERSION 1.0
DESCRIPTION "This is an OpenMP implementation of STREAM Benchmark"
LANGUAGES C)

# Build Type
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

# Dependencies
find_package(OpenMP REQUIRED C)
add_library(stream_openmp_c INTERFACE)
target_link_libraries(stream_openmp_c INTERFACE OpenMP::OpenMP_C)

# Source files
set(sources stream.c)

# Add executable
add_executable(stream ${sources})
target_link_libraries(stream PRIVATE stream_openmp_c)

# Install stream
install(
TARGETS stream
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
Loading

0 comments on commit 7691025

Please sign in to comment.