NVlabs / timeloop

Timeloop performs modeling, mapping and code-generation for tensor algebra workloads on various accelerator architectures.
https://timeloop.csail.mit.edu/
BSD 3-Clause "New" or "Revised" License
339 stars 104 forks source link

error when do "make install_accelergy" #280

Open theTrident opened 2 months ago

theTrident commented 2 months ago

``Hi

I am following the native install steps from this link: https://timeloop.csail.mit.edu/v4/installation#to-do-need-an-install-script-for-pytimeloop . But when I do "make install_timeloop", I get the below error:

Successfully built accelergy accelergy-adc-plug-in accelergy-aladdin-plug-in accelergy-cacti-plug-in library accelergy-neurosim-plug-in accelergy-table-based-plug-ins
Installing collected packages: accelergy, accelergy-adc-plug-in, accelergy-aladdin-plug-in, accelergy-cacti-plug-in, library, accelergy-neurosim-plug-in, accelergy-table-based-plug-ins
  Attempting uninstall: accelergy
    Found existing installation: accelergy 0.4
    Uninstalling accelergy-0.4:
      Successfully uninstalled accelergy-0.4
  Attempting uninstall: accelergy-adc-plug-in
    Found existing installation: accelergy-adc-plug-in 0.1
    Uninstalling accelergy-adc-plug-in-0.1:
      Successfully uninstalled accelergy-adc-plug-in-0.1
  Attempting uninstall: accelergy-aladdin-plug-in
    Found existing installation: accelergy-aladdin-plug-in 0.1
    Uninstalling accelergy-aladdin-plug-in-0.1:
      Successfully uninstalled accelergy-aladdin-plug-in-0.1
  Attempting uninstall: accelergy-cacti-plug-in
    Found existing installation: accelergy-cacti-plug-in 0.1
    Uninstalling accelergy-cacti-plug-in-0.1:
      Successfully uninstalled accelergy-cacti-plug-in-0.1
  Rolling back uninstall of accelergy-cacti-plug-in
  Moving to /usr/local/lib/python3.8/dist-packages/accelergy_cacti_plug_in-0.1.dist-info/
   from /usr/local/lib/python3.8/dist-packages/~ccelergy_cacti_plug_in-0.1.dist-info
  Moving to /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/__pycache__/
   from /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/~_pycache__
  Moving to /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/cacti.estimator.yaml
   from /tmp/pip-uninstall-tbbosost/cacti.estimator.yaml
  Moving to /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/cacti_wrapper.py
   from /tmp/pip-uninstall-tbbosost/cacti_wrapper.py
  Moving to /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/default_SRAM.cfg
   from /tmp/pip-uninstall-tbbosost/default_SRAM.cfg
  Moving to /usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/default_cache.cfg
   from /tmp/pip-uninstall-tbbosost/default_cache.cfg
ERROR: Could not install packages due to an EnvironmentError: [Errno 21] Is a directory: '/usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/cacti'

make: *** [Makefile:113: install_accelergy] Error 1

thanks!

angshuman-parashar commented 2 months ago

@tanner-andrulis @gilbertmike any clues?

tanner-andrulis commented 2 months ago

Is there a previous install of the CACTI plug-in on your system? If so, it may be helpful to remove '/usr/local/share/accelergy/estimation_plug_ins/accelergy-cacti-plug-in/' and retry the intall.