k-wave-python
k-wave-python copied to clipboard
[BUG] Axis-symmetric simulation not supported on Darwin
Describe the bug When running the example examples/at_focused_bowl_AS/at_focused_bowl_AS.py, Users are presented with the following binary error message:
┌───────────────────────────────────────────────────────────────┐
│ kspaceFirstOrder-OMP v1.3 │
├───────────────────────────────────────────────────────────────┤
│ Reading simulation configuration: Done │
│ File format version: 1.2 │
│ Number of CPU threads: 10 │
│ Processor name: │
├───────────────────────────────────────────────────────────────┤
│ Simulation details │
├───────────────────────────────────────────────────────────────┤
│ Domain dimensions: 144 x 109 │
│ Medium type: AS │
│ Simulation time steps: 2400 │
├───────────────────────────────────────────────────────────────┤
│ Input file: /var/folders/_t/rb3njlf11tgf4_0f57j62dk80000gq/ │
│ T/18-Sep-2024-14-09-02_kwave_input.h5 │
│ Input file: /var/folders/_t/rb3njlf11tgf4_0f57j62dk80000gq/ │
│ T/18-Sep-2024-14-09-02_kwave_output.h5 │
├───────────────────────────────────────────────────────────────┤
│ Compression level: 0 │
│ Print progress interval: 5% │
├───────────────────────────────────────────────────────────────┤
│ Medium details │
├───────────────────────────────────────────────────────────────┤
│ Wave propagation: Linear │
│ Absorption type: Lossless │
│ Medium parameters: Homogeneous │
├───────────────────────────────────────────────────────────────┤
│ Source details │
├───────────────────────────────────────────────────────────────┤
│ Pressure source: │
│ + Source type: Many │
│ + Source condition: Additive │
│ + Memory usage: 19.47MB │
├───────────────────────────────────────────────────────────────┤
│ Sensor details │
├───────────────────────────────────────────────────────────────┤
│ Sensor mask type: Index │
│ Sampling begins at time step: 2341 │
├───────────────────────────────────────────────────────────────┤
│ Pressure sensor p_raw │
│ + File usage: 2.04MB │
├───────────────────────────────────────────────────────────────┤
│ Initialization │
├───────────────────────────────────────────────────────────────┤
│ Memory allocation: Done │
│ Data loading: │
│ + Reading input file: Done │
│ + Creating output file: Done │
│ Elapsed time: 0.02s │
├───────────────────────────────────────────────────────────────┤
│ FFT plans creation: Failed │
└───────────────────────────────────────────────────────────────┘
Errors:
WARNING:root:Highest prime factors in each dimension are [ 3 109]
WARNING:root:Use dimension sizes with lower prime factors to improve speed
libgomp: Affinity not supported on this configuration
┌───────────────────────────────────────────────────────────────┐
│ !!! K-Wave experienced a fatal error !!! │
├───────────────────────────────────────────────────────────────┤
│ Error: Cannot create plan 1D real-to-real FFT of kind 5 in y │
│ direction. │
├───────────────────────────────────────────────────────────────┤
│ Execution terminated │
└───────────────────────────────────────────────────────────────┘
Expected behavior This example should run without issue.
Desktop (please complete the following information):
- OS: MacOS
- Version v0.3.4