diff --git a/broker/jfjoch_broker.cpp b/broker/jfjoch_broker.cpp index 0f4606848..00e891094 100644 --- a/broker/jfjoch_broker.cpp +++ b/broker/jfjoch_broker.cpp @@ -70,6 +70,9 @@ int main(int argc, char **argv) { // cuFFT's initialisation, and card 0's context, ahead of the first collection; the plan it times shows // whether the CUDA JIT cache works - without one, every plan the analysis makes is compiled again. LogCudaJitCache(logger, WarmUpCuFFT()); + // Indexers and cuFFT plans kept for the life of the broker; never destroyed, the CUDA runtime may be gone at exit + [[maybe_unused]] static const FFTIndexerReuse *fft_indexers = new FFTIndexerReuse; + [[maybe_unused]] static const FFTPlanReuse *fft_plans = new FFTPlanReuse; org::openapitools::server::model::Jfjoch_settings settings; std::ifstream file(argv[1]); diff --git a/receiver/JFJochReceiverRugnuxRotation.cpp b/receiver/JFJochReceiverRugnuxRotation.cpp index 4645da057..df00ab297 100644 --- a/receiver/JFJochReceiverRugnuxRotation.cpp +++ b/receiver/JFJochReceiverRugnuxRotation.cpp @@ -107,9 +107,6 @@ JFJochReceiverRugnuxRotation::JFJochReceiverRugnuxRotation(const DiffractionExpe model(std::move(in_model)), deadline_s(in_deadline_s), live_status(in_live_status) { - // Indexers and cuFFT plans kept for the life of the broker; never destroyed, the CUDA runtime may be gone at exit - [[maybe_unused]] static const FFTIndexerReuse *fft_indexers = new FFTIndexerReuse; - [[maybe_unused]] static const FFTPlanReuse *fft_plans = new FFTPlanReuse; logger.Info("rugnux live: starting {} forward threads; rugnux runs on {} threads while the images arrive, " "planning against {:.1f} GB of host memory", nthreads, rugnux_nthreads, static_cast(host_budget) / 1e9);