Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Revamp samples and benchmarks #31

Merged
merged 29 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cc3e866
Move and rename benchmark to it separate benchmark directory.
jrhemstad Sep 30, 2020
25d155c
Use CUDA as project language.
jrhemstad Sep 30, 2020
e8cc0bb
Revampe benchmark cmake script.
jrhemstad Sep 30, 2020
3c32ceb
typo
jrhemstad Sep 30, 2020
60e7fb3
tense.
jrhemstad Sep 30, 2020
325513e
Changed path to text files.
jrhemstad Oct 1, 2020
50ad605
Add error checking to opening files.
jrhemstad Oct 1, 2020
afd58a7
Add initial cmake for building trie_st.
jrhemstad Oct 1, 2020
cd8ef16
Update txt file paths and add error checking to trie_mt.
jrhemstad Oct 1, 2020
e642ce1
Add cmake config for trie_mt.
jrhemstad Oct 1, 2020
e504db4
Update paths and error checking for trie.cu.
jrhemstad Oct 1, 2020
acf3db3
Only download books if they don't already exists.
jrhemstad Oct 1, 2020
f2e0eaa
Add config for trie.
jrhemstad Oct 1, 2020
9ca2303
Add cmake config for trie.cu.
jrhemstad Oct 1, 2020
32ae0d7
Delete old scripts.
jrhemstad Oct 1, 2020
bbde1ee
Update include paths.
jrhemstad Oct 1, 2020
39a0645
Remove hardcoded paths in nvrtc example.
jrhemstad Oct 1, 2020
f2ecd55
Add cmake config for nvrtc example.
jrhemstad Oct 1, 2020
e6688a4
Remove unused cmake stuff.
jrhemstad Oct 1, 2020
218a033
Doc.
jrhemstad Oct 1, 2020
ec2a4b6
Format.
jrhemstad Oct 1, 2020
20a702c
Replace simt namespace with cuda.
jrhemstad Oct 2, 2020
dff74e8
Point nvrtc include path to relative location of libcu++.
jrhemstad Oct 2, 2020
e291950
Reorganize cmake file.
jrhemstad Oct 2, 2020
e53370b
Add concurrent hash table example.
brycelelbach Oct 16, 2020
69e3dc3
Merge remote-tracking branch 'origin/main' into reorganize_samples
jrhemstad Oct 20, 2020
ba3538e
rename samples -> examples.
jrhemstad Oct 20, 2020
818d2b1
Add hash map to cmake file.
jrhemstad Oct 20, 2020
1b716a1
Docs: Update link in README.md to point to the new examples directory.
brycelelbach Oct 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
cmake_minimum_required(VERSION 3.18)

project(libcudacxx-benchmarks LANGUAGES CXX CUDA)

set(CMAKE_BUILD_TYPE "RelWithDebInfo")

set(GPU_ARCHS "70;72;75;80" CACHE STRING "List of GPU architectures to compile for.")

message(STATUS "Enabled CUDA architectures:${GPU_ARCHS}")

find_package(Threads REQUIRED)
find_package(OpenMP)

function(ConfigureHostBench BENCH_NAME BENCH_SRC)
jrhemstad marked this conversation as resolved.
Show resolved Hide resolved
add_executable("${BENCH_NAME}" "${BENCH_SRC}")
target_link_libraries("${BENCH_NAME}" PRIVATE Threads::Threads)

# TODO: Link against libcudaxx interface target instead
target_include_directories("${BENCH_NAME}" PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/../include")
if(OpenMP_CXX_FOUND)
target_link_libraries("${BENCH_NAME}" PRIVATE OpenMP::OpenMP_CXX)
endif()
endfunction(ConfigureHostBench)

function(ConfigureDeviceBench BENCH_NAME BENCH_SRC)
add_executable("${BENCH_NAME}" "${BENCH_SRC}")
set_property(TARGET "${BENCH_NAME}" PROPERTY CUDA_ARCHITECTURES "${GPU_ARCHS}")
# TODO: Link against libcudaxx interface target instead
target_include_directories("${BENCH_NAME}" PRIVATE
"${CMAKE_CURRENT_SOURCE_DIR}/../include")
target_compile_options("${BENCH_NAME}" PRIVATE --expt-extended-lambda --expt-relaxed-constexpr)
endfunction(ConfigureDeviceBench)

ConfigureHostBench(concurrency_host concurrency.cpp)

ConfigureDeviceBench(concurrency_device concurrency.cu)

File renamed without changes.
File renamed without changes.
58 changes: 0 additions & 58 deletions samples/CMakeLists.txt

This file was deleted.