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

M1 and M2 support on mac #102

Open
Simonlee711 opened this issue Dec 5, 2024 · 0 comments
Open

M1 and M2 support on mac #102

Simonlee711 opened this issue Dec 5, 2024 · 0 comments

Comments

@Simonlee711
Copy link

I think many packages in the meds ecosystem can benefit from a different set of instructions for M1 and M2 chips. I've had a difficult time working around getting polars to work properly. I recently installed python that does not run under Roseeta x86-64 but it still appears to come up short:

Resharding data
/Users/simonlee/opt/anaconda3/envs/py312/lib/python3.12/site-packages/polars/_cpu_check.py:259: RuntimeWarning: Missing required CPU features.

The following required CPU features were not detected:
    avx, avx2, fma, bmi1, bmi2, lzcnt, movbe
Continuing to use this version of Polars on this processor will likely result in a crash.
Install the `polars-lts-cpu` package instead of `polars` to run Polars with better compatibility.

Hint: If you are on an Apple ARM machine (e.g. M1) this is likely due to running Python under Rosetta.
It is recommended to install a native version of Python that does not run under Rosetta x86-64 emulation.

If you believe this warning to be a false positive, you can set the `POLARS_SKIP_CPU_CHECK` environment variable to bypass this check.

  warnings.warn(
tabularize_meds.sh: line 71: 48222 Illegal instruction: 4  MEDS_transform-reshard_to_split --multirun worker="range(0,6)" hydra/launcher=joblib input_dir="$MIMICIV_MEDS_DIR" cohort_dir="$MIMICIV_MEDS_RESHARD_DIR" 'stages=["reshard_to_split"]' stage="reshard_to_split" stage_configs.reshard_to_split.n_subjects_per_shard=2500 "polling_time=5"
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

1 participant