Hello,
I've been trying to use the latest versions of PSRDADA and DSPSR for our setup at the CHIME telescope. Both were compiled following the nominal instructions, and linking to the CUDA-13.1 installation of our latest/test NVIDIA GPU seems successful when running make check. I'm happy to pass along logistical info if you would find it helpful.
When running "make check", the results indicate all tests pass. However, when I look at the log for OutputDADABufferTest, I see the folllowing:
[==========] Running 3 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 3 tests from OutputDADABufferTest
[ RUN ] OutputDADABufferTest.test_create_destroy
ipc_alloc: shmget (key=a001, size=528, flag=1b6) No such file or directory
ipcsync_get: ipc_alloc error
ipcbuf_connect: ipcsync_get error
[2026-03-23-20:18:26] ERR: Failed to connect to Header Block
It seems likely that the underlying DADA and/or DSPSR utilities are not estimating the size value correctly. This idea is somewhat substantiated when following the tutorial outlined here, where the dspsr call produces an apparent "file not recognized" error but actually produces the same shmget error when running dspsr -V.
Again, please do let me know if you'd like any info from me.
Cheers,
As a follow-up, I've been trying different things and have a likely related view of the above issue. I tried out the following lines to load test data into a PSRDADA ring buffer and then execute dspsr:
(Using the commands given in the dspsr-DADA tutorial linked above did not work; I can indeed retrieve the header data when running the above and then executing
dada_header -v.) When running dspsr, I see the following:it looks like dspsr is able to recognize the input-file format and obtain shm-related data needed to instantiate some of the DADA-related routines, but is nonetheless not able to retrieve header data (whereas
dada_headercan output header data fine).Hi Emmanuel,
I need to have a closer look at the first error that you reported, but the clue to the second error is
It appears that your ASCII header contains only the text
Does this sound correct to you? DSPSR is expecting
and the required keywords listed above:
... hope this helps!
Hi @straten,
Thanks so much for your prompt response! For clarity, I'm basically running
dspsrin the same way suggested in this tutorial, i.e., by supplying a key file todspsrafter having run thedada_utilities described above so that dspsr can process data stored in a ring buffer; the specificdspsrcommand I use is:So I'm not supplying the
1644-4559.dadatest file directly todspsr, but instead (trying to) load the data into a DADA-formated buffer and supplying a key file todspsr. I still get the above error despite having a.hdrfile, containing the header data below, in the same subdirectory containing the test data.Key file (
dada.info):Header file (
dada.hdr):Hi Emmanuel, thank you for this additional information. I could reproduce the error on my end (tutorial failure) and have just checked in some fixes to psrdada: the psrdada library has been evolving and at some point it stopped understanding the old CPSR2 data files. This backward compatibility has been restored.
Could you please git pull the latest version of psrdada and compile and install it? You might also need to recompile dspsr and install it again too.