From 3063eee3056d4b96b57e2f0eb8456834769d1867 Mon Sep 17 00:00:00 2001 From: AshtonSBradley Date: Thu, 18 Apr 2024 14:21:53 +1200 Subject: [PATCH] increase fftw threads --- .vscode/settings.json | 1 + Project.toml | 1 + src/QuantumFluidSpectra.jl | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/Project.toml b/Project.toml index 0fec0ae..ec8954c 100644 --- a/Project.toml +++ b/Project.toml @@ -5,6 +5,7 @@ version = "0.1.7" [deps] FFTW = "7a1cc6ca-52ef-59f5-83cd-3a7055c09341" +Hwloc = "0e44f5e4-bd66-52a0-8798-143a42290a1d" JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819" PaddedViews = "5432bcbf-9aad-5242-b902-cca2824c8663" QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" diff --git a/src/QuantumFluidSpectra.jl b/src/QuantumFluidSpectra.jl index deeccc4..106b061 100644 --- a/src/QuantumFluidSpectra.jl +++ b/src/QuantumFluidSpectra.jl @@ -1,7 +1,9 @@ module QuantumFluidSpectra using Tullio -using FFTW +using Hwloc +using FFTW +FFTW.set_num_threads(num_physical_cores()) using SpecialFunctions using PaddedViews using UnPack