Skip to content

garikoitz/prfsynth Does not work on Apple Silicon #96

@Gilles86

Description

@Gilles86

Hey,

Would it be possible to compile the Matlab code that is needed to simulate PRF data on ARM64?

Right now I cannot run the garikoitz/prfsynth-docker on my Macbook:

docker run --rm -it \
    -v "$script_dir/$json_file:/flywheel/v0/input/config.json" \
    -v "$basedir:/flywheel/v0/output" \
    garikoitz/prfsynth

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
[garikoitz/prfsynth]     Initialized.
[garikoitz/prfsynth]     See detailed usage here: https://github.com/vistalab/PRFmodel/wiki/prf-Synthesize:-how-to-edit-json-file
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/opt/mcr/v95//runtime/glnxa64:/opt/mcr/v95//bin/glnxa64:/opt/mcr/v95//sys/os/glnxa64:/opt/mcr/v95//sys/opengl/lib/glnxa64
Fatal Internal Error: std::exception: uint64_t foundation::core::system::linux::x86_64::getMaximumProcessorFrequencyImpl(): Numerical result out of range

real    0m11.802s
user    0m6.786s
sys     0m4.535s
<ERROR> [garikoitz/prfsynth]     An error occurred during execution of the Matlab executable. Exiting!
Docker command executed successfully. Output is in '/data/ds-prfsynth'.

I also tried the --platform-variable, but doesn't help:

docker run --rm -it \
    --platform linux/amd64 \
    -v "$script_dir/$json_file:/flywheel/v0/input/config.json" \
    -v "$basedir:/flywheel/v0/output" \
    garikoitz/prfsynth
[garikoitz/prfsynth]     See detailed usage here: https://github.com/vistalab/PRFmodel/wiki/prf-Synthesize:-how-to-edit-json-file
------------------------------------------
Setting up environment variables
---
LD_LIBRARY_PATH is .:/opt/mcr/v95//runtime/glnxa64:/opt/mcr/v95//bin/glnxa64:/opt/mcr/v95//sys/os/glnxa64:/opt/mcr/v95//sys/opengl/lib/glnxa64
Fatal Internal Error: std::exception: uint64_t foundation::core::system::linux::x86_64::getMaximumProcessorFrequencyImpl(): Numerical result out of range

real    0m8.321s
user    0m6.440s
sys     0m2.025s
<ERROR> [garikoitz/prfsynth]     An error occurred during execution of the Matlab executable. Exiting!
Docker command executed successfully. Output is in '/data/ds-prfsynth'.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions