Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
477 commits
Select commit Hold shift + click to select a range
4cf95d2
Merge branch 'fluff_mt' into 8kchan
Jun 13, 2019
0883b52
point hashpipe repo to hera-team github
Jun 13, 2019
b2c7321
Flip arrangement of 64-bit words in 256-bit reg
Jun 13, 2019
6d4b553
Merge branch 'ibv' of https://github.com/HERA-Team/paper_gpu into 8kchan
Jun 13, 2019
f0130a4
Change variable name NBLTS for baseline-times product
dgorthi Jun 14, 2019
edd4c5a
Do not hardcode catcher IP address
dgorthi Jun 14, 2019
5e3bf7d
Store baseline index (bcnt) for every baseline...
dgorthi Jun 14, 2019
03f884e
BDA disk thread v2
dgorthi Jun 14, 2019
afa5b74
Fix redeclaration of python sourcing path
Jun 18, 2019
3ae5f33
Make teardown scripts kill redis loggers
Jun 18, 2019
826719d
Don't log stdout, only stderr to redis
Jun 18, 2019
463df92
Add option to tee X-engine logs to redis
Jun 18, 2019
f25b5cd
Add redis logging option to catcher
Jun 18, 2019
7e6bbd0
python path fix
Jun 18, 2019
f499bc2
Reset NFILES and NDONE files on startup
Jun 18, 2019
0316c7d
Add parameter to take into accoutn netthread sees more bytes than are…
Jun 19, 2019
b0e17d5
Revert "Add parameter to take into accoutn netthread sees more bytes …
Jun 19, 2019
f5126f2
Have GPU thread print xGPU to status buffer
Jun 19, 2019
700cec0
Make N_FENGINES always equal to N_ANTS
Jun 19, 2019
3772112
Wait an extra couple of seconds before releasing NETHOLD
Jun 19, 2019
98048c6
Give fluffing 3 threads
Jun 20, 2019
70ebc0e
Blast the output packets!
Jun 20, 2019
0738648
Add installation script with N_ants option
Jun 24, 2019
d694f68
Separate BDA averaging and sending...
dgorthi Jul 10, 2019
c056971
Catcher to adapt to BDA ...
dgorthi Jul 10, 2019
5cfb60f
Generate fake Xeng vectors and test...
dgorthi Jul 10, 2019
2c4e49e
test configuration scripts
dgorthi Jul 10, 2019
58f7de1
read contents of cathcer uvh5 files and check test vector content
dgorthi Jul 10, 2019
7be72c5
update redis to trigger data taking etc in test mode
dgorthi Jul 10, 2019
02d4442
Free databufs ...
dgorthi Jul 10, 2019
0037cef
change redis database to hera-sn1, added data stat init vars
Jul 11, 2019
332a65a
corrected flag convention
Jul 11, 2019
c90e052
Write entire block...
Jul 11, 2019
7e959d7
Add function for adding files to M&C
plaplant Jul 29, 2019
e56c28a
Add function for making new sessions in the librarian
plaplant Jul 29, 2019
66eec30
Fix typo in script name
plaplant Jul 29, 2019
6b3821e
Change librarian identity
plaplant Jul 29, 2019
f152a66
Merge pull request #17 from HERA-Team/add_mc_integration
plaplant Jul 31, 2019
8674dbb
Exit forked threads after doing work; so something with system exit c…
Jul 31, 2019
a5f301f
Write only 32 baselines at a time
Aug 1, 2019
5d4c264
Put back CNETHOLD flag
Aug 1, 2019
c86ea9e
Rename
Aug 1, 2019
995fd95
Bring up the catcher machine with the BDA version
Aug 1, 2019
5271fb0
include bda scripts
Aug 2, 2019
3e04364
move catcher init to catcher_up
Aug 2, 2019
f8f1d81
move init to catcher_up
Aug 2, 2019
f797272
include config file details
Aug 2, 2019
f2d3d57
Change fork conditional to make child process do work
Aug 4, 2019
faeb4ef
Add redis keys for RTP file lists and processing flag
plaplant Aug 6, 2019
73ffa50
Set expiry timer every time is_taking_data redis key is updated
Aug 20, 2019
a4512e6
Merge pull request #18 from HERA-Team/rtp_redis
jack-h Aug 20, 2019
c61df82
Change the memspace dimensions for speedup
Aug 21, 2019
0a0687d
Support redis sync time in ms
Aug 21, 2019
0544ec3
Merge branch '8kchan' of https://github.com/HERA-Team/paper_gpu into …
Aug 21, 2019
c960c66
Merge branch 'non-second-sync' into 8kchan
Aug 21, 2019
3125ac5
Reverse compatibility with old version...
dgorthi Aug 23, 2019
2965c9c
Make compatible with latest hashpipe
dgorthi Aug 26, 2019
394294c
remove debugging print statements
dgorthi Aug 26, 2019
d09d9f7
ramp with frequency test vectors
dgorthi Aug 26, 2019
5684ff7
revert file back to non-BDA version
dgorthi Aug 26, 2019
1c96a88
change databuf structures to BDA versions
dgorthi Aug 26, 2019
ec5ae8c
Minor changes...
dgorthi Aug 26, 2019
81ecdd4
BDA and old script compatibility
dgorthi Aug 26, 2019
fcd1933
Update to latest + add BDA params...
dgorthi Aug 27, 2019
278d6be
Remove unused function
Aug 27, 2019
f1b024b
Increase buffer size
Aug 27, 2019
afa23ca
Catcher sum, more headers...
dgorthi Sep 6, 2019
6e4f9a3
BDA version of header template
dgorthi Sep 6, 2019
fbb03bf
add chan sum
dgorthi Sep 6, 2019
61f6f05
remove hardcoding config file
dgorthi Sep 6, 2019
8e446de
add BDACONF param to redis
dgorthi Sep 6, 2019
2c1be6e
add ramp test vecs
dgorthi Sep 6, 2019
0ee50e5
Update BDACONF param on startup
dgorthi Sep 6, 2019
441c6cc
include bath bda and non bda make template files
Oct 1, 2019
215a54a
change missed blocks math, remove debugging prints
Oct 1, 2019
1ca311d
remove block specification in hyperslabbing... It is not changing wri…
Oct 1, 2019
4ecf711
Add holdoff loop...
Oct 1, 2019
51a7cfe
change default eth address to eth5
Oct 1, 2019
9633080
add the different make_template script for BDA version
Oct 1, 2019
2cd8051
include cminfo and redis flags for BDA template file
Oct 1, 2019
3807690
Change integration time array...
Oct 1, 2019
5092d72
Add test vector mode to BDA testing...
Oct 1, 2019
f7dd48a
Include test vec mode for BDA
Oct 1, 2019
d18ca10
supress debugging print statements
Oct 1, 2019
ac45eef
include NFILEs
Oct 1, 2019
d7074ef
Merge branch 'bda' of https://github.com/dgorthi/paper_gpu into dgort…
dgorthi Oct 1, 2019
697fa93
Merge branch 'dgorthi-bda' into bda
dgorthi Oct 1, 2019
b1e12f0
change sync_time to be interpreted in milliseconds
dgorthi Oct 2, 2019
5ffeab8
uvw array ...
dgorthi Oct 2, 2019
2e14664
Autocorr thread...
dgorthi Oct 4, 2019
94c991a
change sync_time to milliseconds
Oct 6, 2019
00e50ce
BDA config file...
Oct 6, 2019
e1a47c6
checnge cm hangling commands, update uvw array computation
Oct 6, 2019
5f37ab3
Fix merge conflicts
Oct 6, 2019
aa2d270
typo fix
Oct 7, 2019
6f1f45f
Log to Redis option
Oct 7, 2019
c7a3929
Set Nants hashpipe var
Oct 7, 2019
16374fe
change echo statements to reflect the actual threads launched
Oct 7, 2019
90b3d64
Verify test file contents
Oct 8, 2019
71d5b83
Verify non-BDA contents in test vector mode
Oct 8, 2019
3f0062b
Bug fixes ...
dgorthi Oct 9, 2019
f8373da
Add SNAP Vec mode of testing
dgorthi Oct 9, 2019
0b57266
sync_time is uint64
Oct 9, 2019
f5beeef
Merge branch 'bda' of https://github.com/HERA-Team/paper_gpu into bda
Oct 9, 2019
9b846a2
Increase packet delay to make data less bursty
Oct 12, 2019
5d12d0b
add logic to sync between xengs
Oct 12, 2019
4550ab2
typo fix
Oct 12, 2019
980c18e
change ant array type for consistency across threads
Oct 12, 2019
b266f6c
HERA ant numbers...
Oct 12, 2019
ecba722
HERA ants in template file
Oct 12, 2019
2c96003
Check auto corrs in SNAP test vec mode
Oct 12, 2019
413755b
Bug fixes in BDA sync...
dgorthi Oct 12, 2019
f580ec9
Tie bcnt to mcnt...
dgorthi Oct 15, 2019
e0bba4e
Header fixes...
Oct 15, 2019
af8ba1f
Start on Bcnt zero only
Oct 15, 2019
b699d10
Generate config file on catcher machine for the template file
Oct 15, 2019
9a177b2
Merge branch 'bda' of https://github.com/HERA-Team/paper_gpu into bda
Oct 15, 2019
a66c6ab
HERA ants nums...
Oct 15, 2019
0ce4ece
BCNT tied to MCNT...
Oct 15, 2019
11124a1
typo fix in file stop time
dgorthi Oct 22, 2019
5b9f004
Bring test script to working condition
Oct 22, 2019
1ba58e8
Merge branch 'bda' of https://github.com/HERA-Team/paper_gpu into bda
Oct 22, 2019
650ac03
remove lst array, change ntimes to reflect unique times
Oct 22, 2019
3e22c4c
debugging statements to trace hdf5 errors
Oct 22, 2019
35b57b2
Move catcher ethernet core to eth4
Oct 23, 2019
987a06f
Use processing cores on same NUMA node as eth4 NIC
Oct 23, 2019
067f27f
Change eth port
Oct 24, 2019
5a9b1d8
remove old code (no change in execution)
Oct 24, 2019
b8f3aac
remove no check clause!
Oct 24, 2019
f3013cc
Change integration time...
Oct 25, 2019
1a051d4
Fix second trigger error...
dgorthi Oct 30, 2019
5d0dcce
fix mcnt difference with px number
Oct 30, 2019
b905213
increase packet delay
Oct 30, 2019
3053196
update mcnt only for non empty bins
Oct 30, 2019
463f5f1
change cpus to be physically closer to the NIC
Oct 30, 2019
a6efe79
Speed up script...
Oct 30, 2019
424b866
Fix empty uvw array, constant Ntimes...
Oct 30, 2019
1ab587e
bug fixes and updates to non-BDA test script
Oct 30, 2019
c0274c1
Merge branch 'bda' of https://github.com/HERA-Team/paper_gpu into bda
Oct 30, 2019
d8fcd33
add python env path to args
Oct 31, 2019
7a1924c
remove debugging print
Oct 31, 2019
cd6ebcb
change default to running BDA
Oct 31, 2019
84c3fb8
Change mcnt header...
Nov 7, 2019
c16dd77
Do *not* mark filled on receiving all packets...
Nov 7, 2019
c13292e
lax criteria for auto ants
Nov 7, 2019
a464c4c
typo fix in print statement
Nov 7, 2019
d548bd9
typo fix in baselines
Nov 7, 2019
ee56462
typo fix for pkt_block_i
Nov 7, 2019
2adeab7
Remove bcnt-mcnt check...
Nov 7, 2019
9b1b84c
Add special case of single host, multiple time slices
Nov 8, 2019
762fabe
Merge branch '8kchan' into 8kchan-384ant
Nov 8, 2019
53586d3
add option for bda to be False
Nov 13, 2019
16a94d3
infer integration time from redis
Nov 13, 2019
f041b81
changed redis to sharedmem in comments
Nov 13, 2019
a9408b2
Throttle output
Nov 14, 2019
48f4554
Print warning when a burst has an abnormally large
Nov 14, 2019
e21c3d8
Fix missed packet count logic. Boost n blocks to 16
Nov 14, 2019
6764efd
Make special case for testing even/odd samples on a single server
Nov 14, 2019
188648b
Play with core affinities
Nov 14, 2019
02c66b4
Merge branch '8kchan-384ant' into bda
Nov 14, 2019
92b8268
Correctly pass gpu_bda mask
Nov 14, 2019
8d1d4fe
Speed up output
Nov 14, 2019
b731ec8
Add option to run without needing to access the site database
Nov 14, 2019
865b658
remove hera_corr_f import
Nov 14, 2019
5b41b48
increase packet delay, change status key to comply with redis
Nov 15, 2019
413a22d
Config file in catcher...
Nov 15, 2019
ada1bc3
change integration time to intregration bin header
Nov 15, 2019
4be02c2
Add redis keys for BDA branch
plaplant Nov 15, 2019
982aa27
Remove skip diff
Nov 15, 2019
f2833ce
close integration time filespace
Nov 15, 2019
b062245
close header datasets
Nov 16, 2019
5752293
Merge pull request #25 from HERA-Team/add_redis_rtp
dgorthi Nov 18, 2019
613036d
tell rtp when moving to idle state
Nov 19, 2019
16165c7
Add function for adding observations to M&C
plaplant Nov 19, 2019
0c3ac0a
Merge pull request #26 from HERA-Team/add_mc_bda
dgorthi Nov 19, 2019
e195869
Change which environment calls the M&C script
plaplant Nov 19, 2019
762159d
Merge pull request #27 from HERA-Team/mc_v2
dgorthi Nov 20, 2019
1898c73
account of bytes written when writing diff files
Nov 20, 2019
2e48152
Merge pull request #28 from HERA-Team/bda
jack-h Nov 21, 2019
42cb349
Merge pull request #29 from HERA-Team/8kchan
jack-h Nov 21, 2019
1a3a296
Downgrade standard BDA messages to stdout, not stderr
Nov 21, 2019
952df0e
More stderr -> stdout downgrades
Nov 21, 2019
5753a22
Add x_orientation to data files
plaplant Nov 25, 2019
2d2fa57
Merge pull request #31 from HERA-Team/x_orientation_bda
jack-h Nov 25, 2019
9aa6f8b
Fix issue #33
Dec 3, 2019
cc4ac6e
Merge pull request #34 from HERA-Team/array-lon-fix
jack-h Dec 3, 2019
56bf40a
Try to trim antenna positions in metadata
plaplant Dec 5, 2019
b72d18e
Fix handling of uvw array
Dec 13, 2019
056c678
Change default position to be array center instead of earth center
plaplant Dec 17, 2019
ff377fa
Merge pull request #35 from HERA-Team/fix_ant_pos
plaplant Dec 17, 2019
fb5c1d6
Fix Issue #37
Jan 14, 2020
a197c9a
Remove default dependency on hera_mc
Jan 22, 2020
0594b3d
Temporarily change default nsamples and flag array
Jan 22, 2020
0582c38
changed helper -> handler
david-deboer Feb 19, 2020
097b7c8
update to redis-based cminfo
david-deboer Feb 20, 2020
95f13b3
finish redisifying
david-deboer Feb 20, 2020
32cfb8d
changed over to proper hera_corr_cm redis_cm
david-deboer Mar 31, 2020
11579f0
make degrees radians
david-deboer Mar 31, 2020
2c5a12e
Merge pull request #38 from HERA-Team/handler
plaplant Mar 31, 2020
d3bf4bf
Change name of sum files
dgorthi Feb 5, 2020
23533a6
Merge pull request #39 from HERA-Team/sum_files
plaplant Mar 31, 2020
8891ac7
Run 2to3 and clean up straggling bits
plaplant Dec 17, 2019
5cb4554
Use loggers instead of warnings
plaplant Apr 22, 2020
6bfb51d
Handle dict keys as bytes
dgorthi Apr 25, 2020
cb6236e
Use decode_responses=True when starting redis connections
dgorthi Apr 27, 2020
ea54026
updated scripts after redis decode enabled on correlator repos
dgorthi May 11, 2020
0b2a90d
Convert nsamples to float instead of uint
plaplant May 19, 2020
6da1207
Fix uvw calculation
plaplant May 30, 2020
21ba530
Update hera_mc command location
dgorthi Jun 22, 2020
6edb102
Change script location (hopefully for the last time)
dgorthi Jun 23, 2020
b675e3a
Fix coordinates and python3-ness...
dgorthi Jun 24, 2020
f28b46f
Include old version option
dgorthi Jun 29, 2020
76f7100
Correct ethernet port that needs to be teaked
dgorthi Jun 29, 2020
0577d5b
Removed unused files to clean things up.
HERA-Observer Jul 14, 2020
472d5f7
Merge pull request #41 from HERA-Team/remove_unused
david-macmahon Jul 14, 2020
48e1b79
Missed pkt stats, max offset...
dgorthi Jul 15, 2020
c92f51d
Late packet warning includes info of antenna num...
dgorthi Jul 15, 2020
412863d
Increase throttle on output rate...
dgorthi Jul 15, 2020
06f30e5
Add macros for num_xengs and max-offset...
dgorthi Jul 15, 2020
b7723d8
Increase throttle on output datarate...
dgorthi Jul 15, 2020
a7012d2
Add verbose print on packet loss...
dgorthi Jul 15, 2020
40935c7
Merge pull request #40 from HERA-Team/py3
dgorthi Jul 15, 2020
7762d2b
Merge pull request #42 from HERA-Team/network_issues
jkocz Jul 15, 2020
1067ec7
Update hera_catcher_net_thread_bda.c
dgorthi Jul 24, 2020
2e36ba8
Merge pull request #43 from HERA-Team/dgorthi-patch-1
jkocz Aug 22, 2020
c4ed9ae
Changed affinity of NET CPU in paper_init.sh for px* machines to avoi…
HERA-Observer Aug 23, 2020
f1c35c9
Merge pull request #44 from HERA-Team/net_cpu
jkocz Aug 23, 2020
0583e90
Try to use different approach to initialize nsamples
plaplant Aug 25, 2020
cea20cd
Commiting commented out net params in tweak-perf.sh
dgorthi Sep 9, 2020
e94bb33
Add clarifying comment
plaplant Sep 10, 2020
fb014b6
Merge pull request #48 from HERA-Team/fix_nsamples
AaronParsons Sep 10, 2020
e7af610
Tweaks made by Aaron Parsons to absorb a higher data rate into the da…
dgorthi Sep 19, 2020
428783a
Merge pull request #54 from HERA-Team/tweak-perf
jkocz Feb 11, 2021
cf6a56c
Improve how antenna metadata are handled
plaplant Mar 1, 2021
0dd5931
Put files in a folder for each day
plaplant Mar 1, 2021
f2a660f
Update variable name
dgorthi Mar 1, 2021
52317b9
Source conda env in catcher init script
dgorthi Mar 2, 2021
43f2961
Tweak how environment is activated
dgorthi Mar 2, 2021
0f08cc1
Activate conda env in paper init script
dgorthi Mar 2, 2021
40e426d
Update activate command in xtor_up.py
dgorthi Mar 2, 2021
9cfc6b4
Adjust activate command where it actually matters
dgorthi Mar 2, 2021
5846d1c
Update activate command in data taking script
dgorthi Mar 2, 2021
8d08e63
Make antenna_diameters the right shape
dgorthi Mar 3, 2021
e672b04
Update folder permissions
dgorthi Mar 3, 2021
57befb9
Add chmod to change folder permissions
dgorthi Mar 8, 2021
565f429
Add files to RTP launch record table
dgorthi Mar 24, 2021
9eb9eb8
Pass sum file to M&C function instead of diff
dgorthi Mar 25, 2021
228be77
Throttle "Ignoring late packet" messages
Jun 4, 2021
d8ad3ad
Throttle "out of seq mcnt" messages
Jun 9, 2021
aefa31a
Reduce burst_message_threshold to 120
Jun 10, 2021
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
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "xGPU"]
path = xGPU
url = https://github.com/GPU-correlators/xGPU
[submodule "bitshuffle"]
path = bitshuffle
url = https://github.com/kiyo-masui/bitshuffle
[submodule "hashpipe"]
path = hashpipe
url = https://github.com/hera-team/hashpipe.git
9 changes: 8 additions & 1 deletion INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,11 @@ Example:
If xGPU is installed under "/usr/local/xgpu16_256_32_titan", you can tell
configure to find it there like this:

$ ./configure --with-xgpu=/usr/local/xgpu16_256_32_titan
$ ./configure --with-xgpu=/usr/local/xgpu-1080-dp4a

If you need to build xGPU, it is included as a git submodule in this repository.
Go into the xGPU/src directory and run (eg, for HERA H2C):
make clean
make NSTATION=192 NFREQUENCY=384 NTIME=2048 NTIME_PIPE=1024 CUDA_ARCH=sm_61 DP4A=yes
sudo make install prefix=/usr/local/xgpu-1080-dp4a

1 change: 1 addition & 0 deletions bitshuffle
Submodule bitshuffle added at 04e58b
1 change: 1 addition & 0 deletions hashpipe
Submodule hashpipe added at 0ffc3a
33 changes: 33 additions & 0 deletions install_hera.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#! /bin/bash

#default to 192 antennas
n_ants=192

while getopts ":a:h:" opt; do
case ${opt} in
a )
n_ants=$OPTARG
;;
\? )
echo "Usage: $(basename $0) [-a]"
echo " -a : number of antennas to compile for and install"
exit
;;
esac
done

echo "Building and installing for ${n_ants} antennas"
sleep 1;

cd xGPU/src

make clean
make NSTATION=$n_ants NFREQUENCY=384 NTIME=2048 NTIME_PIPE=1024 CUDA_ARCH=sm_61 DP4A=yes
sudo make install prefix="/usr/local/xgpu-1080-dp4a-384c-${n_ants}a"

cd ../../src

./configure --with-xgpu="/usr/local/xgpu-1080-dp4a-384c-${n_ants}a"
make clean
make
sudo make install
10 changes: 10 additions & 0 deletions print-nic-stats.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#! /bin/bash

ethtool -S eth3 | grep rx_dropped
ethtool -S eth3 | grep vport_dropped
ethtool -S eth3 | grep rx_fifo_errors
ethtool -S eth3 | grep rx_missed_errors
ethtool -S eth5 | grep rx_dropped
ethtool -S eth5 | grep vport_dropped
ethtool -S eth5 | grep rx_fifo_errors
ethtool -S eth5 | grep rx_missed_errors
83 changes: 68 additions & 15 deletions src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,46 +1,99 @@
BUILD_USER = $(shell whoami)
BUILD_HOST = $(shell hostname)
BUILD_DATE = $(shell date +%Y/%m/%d-%H:%M%z)
GIT_VERSION = $(shell git describe --abbrev=10 --dirty --always --tags)

ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS =

AM_CPPFLAGS += -I"@HASHPIPE_INCDIR@"
AM_CPPFLAGS += -I"@XGPU_INCDIR@"
AM_CPPFLAGS += -I/usr/include/hdf5/serial/
AM_CPPFLAGS += -I/usr/include/hiredis/

# AM_CFLAGS is used for all C compiles
AM_CFLAGS = -ggdb -fPIC -O3 -Wall -Werror -fno-strict-aliasing -mavx
#AM_CFLAGS = -ggdb -fPIC -O3 -Wall -Werror -fno-strict-aliasing -mavx2
AM_CFLAGS = -fPIC -O3 -Wall -fno-strict-aliasing -mavx2 -march=native -funroll-loops \
-DGIT_VERSION=\"$(GIT_VERSION)\" -DBUILD_USER=\"$(BUILD_USER)\" \
-DBUILD_HOST=\"$(BUILD_HOST)\" -DBUILD_DATE=\"$(BUILD_DATE)\"

# Convenience variables to group source files
paper_databuf = paper_databuf.h \
paper_databuf.c
paper_databuf.c

paper_threads = paper_fake_net_thread.c \
paper_gpu_cpu_output_thread.c \
paper_gpu_output_thread.c \
paper_gpu_thread.c \
paper_fluff_thread.c \
paper_net_thread.c \
paper_crc_thread.c
paper_threads = paper_fake_net_thread.c \
paper_gpu_thread.c \
paper_fluff_thread.c \
hera_pktsock_thread.c \
hera_ibv_thread.c \
hera_fake_gpu_thread.c \
hera_gpu_output_thread.c \
hera_gpu_bda_thread.c \
hera_bda_output_thread.c \
hera_null_thread.c \
hera_catcher_net_thread_bda.c \
hera_catcher_net_thread.c \
hera_catcher_disk_thread_bda.c \
hera_catcher_disk_thread.c \
hera_catcher_autocorr_thread.c \
lzf/lzf_c.c \
lzf/lzf_d.c \
lzf_filter.c \
lzf_filter.h

paper_fluff = paper_fluff.h \
paper_fluff.c
paper_fluff.c

hera_capture = hera_hdf5.h \
hera_write_hdf5.c

# This is the paper_gpu plugin itself
lib_LTLIBRARIES = paper_gpu.la
paper_gpu_la_SOURCES = $(paper_databuf) $(paper_threads) $(paper_fluff)
paper_gpu_la_LIBADD = -lrt -lxgpu
paper_gpu_la_LIBADD = -lrt -lxgpu -lhashpipe_ibverbs
paper_gpu_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
paper_gpu_la_LDFLAGS += -L"@XGPU_LIBDIR@" -Wl,-rpath,"@XGPU_LIBDIR@"
paper_gpu_la_LDFLAGS += -L"@HASHPIPE_LIBDIR@" -Wl,-rpath,"@HASHPIPE_LIBDIR@"
# Include HDF5 Libraries
paper_gpu_la_LDFLAGS += -L/usr/lib/x86_64-linux-gnu/hdf5/serial
paper_gpu_la_LDFLAGS += -lhdf5_hl -lhdf5 -lhiredis
# for intel compiler:
#paper_gpu_la_LDFLAGS += -L/usr/local/intel/compilers_and_libraries_2019.4.243/linux/compiler/lib/intel64_lin -Wl,-rpath,/usr/local/intel/compilers_and_libraries_2019.4.243/linux/compiler/lib/intel64_lin
# Include HDF5 compression libraries
#paper_gpu_la_LDFLAGS += -L/usr/local/lib/python2.7/dist-packages/bitshuffle/plugin
#paper_gpu_la_LDFLAGS += -lh5LZF -lh5bshuf


# Installed scripts
dist_bin_SCRIPTS = paper_init.sh \
paper_crc_init.sh \
xeng_init.sh
dist_bin_SCRIPTS = scripts/paper_init.sh \
scripts/paper_init_ibv.sh \
scripts/paper_crc_init.sh \
scripts/xtor_down.sh \
scripts/xtor_up.py \
scripts/hera_catcher_init.sh \
scripts/hera_catcher_up.py \
scripts/hera_catcher_down.sh \
scripts/hera_catcher_take_data.py \
scripts/hera_catcher_stop_data.py \
scripts/tweak-perf.sh \
scripts/hera_ctl.py \
scripts/hera_create_bda_config.py \
scripts/hera_make_hdf5_template.py \
scripts/hera_make_hdf5_template_bda.py

# Non-installed test programs
noinst_PROGRAMS = paper_fluff_test
noinst_PROGRAMS = paper_fluff_test hera_write_hdf5
paper_fluff_test_SOURCES = paper_fluff_test.c $(paper_fluff)
# The paper_fluff_test_CFLAGS is an autotools workaround.
# http://www.gnu.org/software/automake/manual/html_node/Objects-created-both-with-libtool-and-without.html
paper_fluff_test_CFLAGS = $(AM_CFLAGS)
paper_fluff_test_LDADD = -lrt

hera_write_hdf5_SOURCES = hera_write_hdf5 $(hera_capture)
# The hera_write_hdf5_CFLAGS is an autotools workaround.
# http://www.gnu.org/software/automake/manual/html_node/Objects-created-both-with-libtool-and-without.html
hera_write_hdf5_CFLAGS = -O3 -Wall -Werror -fno-strict-aliasing -mavx2 -march=native -funroll-loops
hera_write_hdf5_LDADD = -lrt -lpthread -lsz -lz -ldl -lm
hera_write_hdf5_LDFLAGS = -L/usr/lib/x86_64-linux-gnu/hdf5/serial /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_hl.a /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.a

# vi: set ts=8 noet :
Loading