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

Segmentation fault for spherical harmonic transform #238

Open
AshtonSBradley opened this issue Dec 4, 2023 · 5 comments
Open

Segmentation fault for spherical harmonic transform #238

AshtonSBradley opened this issue Dec 4, 2023 · 5 comments

Comments

@AshtonSBradley
Copy link

julia> F = sphrandn(Float64, 1024, 2047); # convenience method

julia> P = plan_sph2fourier(F);

julia> PS = plan_sph_synthesis(F);

julia> PA = plan_sph_analysis(F);

julia> @time G = PS*(P*F);

[9851] signal (11.1): Segmentation fault: 11
in expression starting at REPL[7]:1
Allocations: 8155300 (Pool: 8146430; Big: 8870); GC: 15
zsh: segmentation fault 
julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin22.4.0)
  CPU: 16 × Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 8 on 16 virtual cores
Environment:
  JULIA_NUM_THREADS = 8
  JULIA_PKG_DEVDIR = /Users/abradley/Dropbox/Julia/Dev
@AshtonSBradley
Copy link
Author

this might be rather an mkl problem I think

@AshtonSBradley
Copy link
Author

actually, no:

]add IntelOpenMP_jll@2023

Fixes the MKL issue for FFTW, but doesn't fix this.
JuliaMath/FFTW.jl#281

@dlfivefifty
Copy link
Member

@dlfivefifty
Copy link
Member

actually that's an "Illegal Instruction" so might be a different bug

@MikaelSlevinsky
Copy link
Member

That seems like a strange error because looking at the logs of the last aarch64 build, the only optimization flag that could affect ft_plan_rotspinsphere compilation invoked on this hardware is -O3, which shouldn't cause an illegal instruction.

It could be that it's just a question of refreshing the binaries for a more recent MacOS version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants