Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gr-iqtlabs v70 #1104

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion docker/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libvulkan-dev \
python3-numpy
WORKDIR /root
RUN git clone https://github.com/iqtlabs/gr-iqtlabs -b 1.0.69
RUN git clone https://github.com/iqtlabs/gr-iqtlabs -b 1.0.70
COPY --from=iqtlabs/gamutrf-vkfft:latest /root /root/gr-iqtlabs
WORKDIR /root/gr-iqtlabs/build
COPY --from=sigmf-builder /usr/local /usr/local
Expand Down
13 changes: 8 additions & 5 deletions gamutrf/grscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@
):
# if pretuning, the pretune block will also do the batching.
if pretune:
return self.iqtlabs.retune_pre_fft(
block = self.iqtlabs.retune_pre_fft(
nfft,
fft_batch_size,
"rx_freq",
Expand All @@ -334,8 +334,10 @@
tuning_ranges,
self.tag_now,
)
# otherwise, the pretuning block will just do batching.
return blocks.stream_to_vector(gr.sizeof_gr_complex, fft_batch_size * nfft)
else:
# otherwise, the pretuning block will just do batching.
block = blocks.stream_to_vector(gr.sizeof_gr_complex, fft_batch_size * nfft)
return block

def apply_window(self, nfft, fft_batch_size):
window_constants = [val for val in self.get_window(nfft) for _ in range(2)]
Expand All @@ -350,13 +352,14 @@
fft_block = None
fft_roll = False
if self.wavelearner:
fft_block = self.wavelearner.fft(int(fft_batch_size * nfft), (nfft), True)
fft_block = self.wavelearner.fft(int(fft_batch_size * nfft), nfft, True)
fft_roll = True
elif vkfft:
fft_block = self.iqtlabs.vkfft(int(fft_batch_size * nfft), nfft, True)
fft_block = self.iqtlabs.vkfft(fft_batch_size, nfft, True)

Check warning on line 358 in gamutrf/grscan.py

View check run for this annotation

Codecov / codecov/patch

gamutrf/grscan.py#L358

Added line #L358 was not covered by tests
else:
fft_batch_size = 1
fft_block = fft.fft_vcc(nfft, True, [], True, 1)
fft_block.set_thread_priority(99)

fft_blocks = [
self.apply_window(nfft, fft_batch_size),
Expand Down
6 changes: 3 additions & 3 deletions orchestrator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ services:
- --inference_text_color=black
# can be multiple, separate with comma
- --inference_model_name=mini2_snr
- --n_inference=5
- --n_image=5
- --n_inference=10
- --n_image=10
- --no-vkfft
- --rotate_secs=300
- --rotate_secs=60
- --colormap=20
# - --external_gps_server=1.2.3.4
# - --external_gps_server_port=8888
Expand Down
Loading