Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
168217d
Remove old cuda architectures incompatible with version 12
lilinitsy Jun 17, 2024
e8ee3e6
buggy (wrong results) of LS kernel batched
lilinitsy Jun 30, 2024
0a649bb
some updates???
lilinitsy Jun 30, 2024
b8b9e15
index properly in the curve_bytes calculation...
lilinitsy Jun 30, 2024
ace28ad
Multiple lightcurves batched, but not faster; need some improvements
lilinitsy Jul 1, 2024
52e54b2
backup
lilinitsy Jul 13, 2024
be405e3
Batch updates
lilinitsy Jul 14, 2024
a16e378
Minor updates
lilinitsy Jul 14, 2024
7c5c7c8
ffastmath on and some GPU intrinsics
lilinitsy Jul 14, 2024
2f36a81
Use two asynchronous cuda streams, which leads to a large performance…
lilinitsy Jul 14, 2024
a681cd3
Updates to improve accuracy; runtime for testing 100k periods decreas…
lilinitsy Jul 16, 2024
7fe18a0
Get multiple streams working, minor improvement
lilinitsy Jul 16, 2024
ac75555
clang-format
lilinitsy Jul 17, 2024
310de6a
Move cuda stream synchronization outside loop
lilinitsy Jul 17, 2024
04b2955
Remove extraneous chronos usage
lilinitsy Jul 17, 2024
8419b2f
Synchronize streams before destroying
lilinitsy Jul 27, 2024
0b60864
Increase the number of batched curves
lilinitsy Jul 27, 2024
9f6eb21
Modify inner loop condition
lilinitsy Jul 28, 2024
18500e0
Move synchronize
lilinitsy Jul 28, 2024
b6cc7e2
restrict conditional entropy pointers
lilinitsy Jul 28, 2024
b03f020
Pinned memory for CE
lilinitsy Jul 28, 2024
036159c
3 cuda streams for CE
lilinitsy Jul 28, 2024
8521b23
Use registers instead of shared memory in conditional entropy kernel
lilinitsy Aug 7, 2024
5aa4f3e
Copy local hists to local memory
lilinitsy Aug 7, 2024
1a19575
Cleanup on CE
lilinitsy Aug 7, 2024
45031c8
Cleanup on CE
lilinitsy Aug 7, 2024
21d122d
Change block size
Aug 13, 2024
a37cef5
Pyx speedups using list comprehension
lilinitsy Aug 13, 2024
34b8769
Tune threadcount and batch size
lilinitsy Aug 14, 2024
b60e830
More tuning for v100
lilinitsy Aug 14, 2024
a5e347b
More tuning for running on 1 v100
lilinitsy Aug 14, 2024
5083b32
List comprehension when returning stats in pyx
lilinitsy Aug 14, 2024
6c19ff4
Update pyx to reserve memory beforehand
lilinitsy Aug 14, 2024
39b5617
update pyx
lilinitsy Aug 14, 2024
5edbd7e
ls.pyx updates
lilinitsy Aug 14, 2024
a16331a
pyx update, set streams to 4
lilinitsy Aug 14, 2024
8feafdf
Add OpenMP to Cmakelists
lilinitsy Aug 14, 2024
0593b7a
Pyx updates for CE
lilinitsy Aug 15, 2024
ba4a9e9
Adjust thread count
lilinitsy Aug 15, 2024
40854f9
Change threads for ce
lilinitsy Aug 15, 2024
f135693
Testingw ithout pinned on v100
lilinitsy Aug 16, 2024
dfeadbb
Use shared memory (Faster on V100, slower on 1080)
lilinitsy Aug 16, 2024
6adb53a
ce update
lilinitsy Aug 16, 2024
49d69c3
updates to threadcounts per kernel
lilinitsy Aug 17, 2024
4b416c0
Pinned memory for aov
lilinitsy Aug 17, 2024
13fed4c
Threadcount adjustments
lilinitsy Aug 18, 2024
9593fbc
streams for AOV
lilinitsy Aug 18, 2024
c4c2bf5
Move atomic adds in FoldBinKernel
lilinitsy Aug 19, 2024
54785b6
Remove numphasebinoverlap loop from FoldBinKernel
lilinitsy Aug 19, 2024
7e59a60
Finally ran clang-format
lilinitsy Feb 16, 2025
dd4c9ea
Remove extraneous files, clang-format, etc, ready for merge
lilinitsy Feb 16, 2025
3bee0a8
Reformat cuda files with original clang-format
lilinitsy Mar 17, 2025
c7dddfe
Remove extraneous OpenMP message from CMakeLists
lilinitsy Mar 19, 2025
af08140
Fix __restrict to __restrict__ in certain places, remove tmp folder
lilinitsy Nov 5, 2025
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
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ include(GNUInstallDirs)

project(periodfind LANGUAGES CXX CUDA)

find_package(OpenMP REQUIRED)

add_library(periodfind SHARED
periodfind/cuda/ce.cu
periodfind/cuda/aov.cu
Expand All @@ -18,6 +20,10 @@ set_target_properties(periodfind

set_target_properties(periodfind PROPERTIES PUBLIC_HEADER "${HEADER_FILES}")

target_link_libraries(periodfind PRIVATE OpenMP::OpenMP_CXX)
target_compile_options(periodfind PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler=-fopenmp>)
target_compile_options(periodfind PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-use_fast_math>)
Comment thread
ejaszewski marked this conversation as resolved.

install(TARGETS periodfind
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/periodfind)
PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/periodfind)
Loading