facebookincubator / AITemplate

AITemplate is a Python framework which renders neural network into high performance CUDA/HIP C++ code. Specialized for FP16 TensorCore (NVIDIA GPU) and MatrixCore (AMD GPU) inference.
Apache License 2.0
4.52k stars 362 forks source link

Can't finish running compile.py on Stable diffusion example(same issue on others) #83

Open ptrprkr opened 1 year ago

ptrprkr commented 1 year ago

File "\aitemplate\examples\07_how_to_run_pt_model\how_to_run_pt_model.py", line 131, in verify_simple_model() File "\aitemplate\examples\07_how_to_run_pt_model\how_to_run_pt_model.py", line 97, in verify_simple_model with compile_model( File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\compiler\compiler.py", line 200, in compile_model compiler.transform.profile( File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\compiler\transform\profile.py", line 88, in profile compile_engine.make_profilers(generated_profilers, profiler_dir) File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\backend\builder.py", line 364, in make_profilers self._gen_makefile_for_profilers(file_pairs, build_dir) File "\AppData\Local\Programs\Python\Python310\lib\site-packages\aitemplate\backend\builder.py", line 355, in _gen_makefile_for_profilers with open(dumpfile, "w+") as f: FileNotFoundError: [Errno 2] No such file or directory: "'./tmp\profiler'\Makefile"

Could I get some help with this? I apologize if this isn't the right place for this.

antinucleon commented 1 year ago

I guess you are using Windows. If you are using Windows please use AIT in WSL linux mode.

ptrprkr commented 1 year ago

thank you! however now i get this raise RuntimeError("Unsupported platform") RuntimeError: Unsupported platform

antinucleon commented 1 year ago

Which gpu are you using?

On Sun, Nov 13, 2022 at 10:57 ptrprkr @.***> wrote:

thank you! however now i get this raise RuntimeError("Unsupported platform") RuntimeError: Unsupported platform

— Reply to this email directly, view it on GitHub https://github.com/facebookincubator/AITemplate/issues/83#issuecomment-1312797292, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJTLXTGK6M33ZRVEVWAD7TWIE2ZJANCNFSM6AAAAAAR7EVX4I . You are receiving this because you commented.Message ID: @.***>

-- Bing Xu

ptrprkr commented 1 year ago

3060 TI

antinucleon commented 1 year ago

You need to install CUDA in WSL

https://docs.nvidia.com/cuda/wsl-user-guide/index.html

ptrprkr commented 1 year ago

I have, i tried installing again in a different way but still no change, thank you for your time and help though.

hoamle commented 1 year ago

@ptrprkr you need to ensure that you have Windows 21H2 or later, and /usr/lib/wsl/lib/nvidia-smi is in your wsl $PATH