burlachenkok / flpytorch

FL_PyTorch: Optimization Research Simulator for Federated Learning
Apache License 2.0
35 stars 8 forks source link

Support for mac osx #13

Open Haimonti opened 1 year ago

Haimonti commented 1 year ago

Hi, I am trying to install fl_pytorch on mac osx Ventura 13.0.1. with arm64 processor. I know there is no cuda/gpu support for mac osx -- so does one need to edit the run.py file and comment out all the cuda/gpu lines of code? If not, please suggest how this should be done! Many thanks, Haimonti

burlachenkok commented 1 year ago

Hi. This simulator is constructed with Python programming language only.

Support of AARCH64/OS is purely depend does Python interpreter support it and does the underlying libraries support it.

So first step is just try to install need dependencies and Python interpreter: https://github.com/burlachenkok/flpytorch/blob/main/README.md#prepare-conda-environment

Regarding GPU support - the available devices in GUI is filled before launch: https://github.com/burlachenkok/flpytorch/blob/main/fl_pytorch/utils/gpu_utils.py#L61

And you will see the devices in System panel. You already can start play with a lot of things already in CPU.