triton-lang / triton

Development repository for the Triton language and compiler
https://triton-lang.org/
MIT License
12.03k stars 1.43k forks source link

Help build WHL for Windows #4184

Open SoftologyPro opened 1 month ago

SoftologyPro commented 1 month ago

I run

git clone https://github.com/triton-lang/triton
cd triton
cd python
python setup.py sdist bdist_wheel

which fails with

downloading and extracting https://anaconda.org/nvidia/cuda-nvcc/12.4.99/download/linux-AMD64/cuda-nvcc-12.4.99-0.tar.bz2 ...
Traceback (most recent call last):
  File "D:\Tests\triton\python\setup.py", line 439, in <module>
    download_and_copy(
  File "D:\Tests\triton\python\setup.py", line 268, in download_and_copy
    file = tarfile.open(fileobj=open_url(url), mode="r|*")
  File "D:\Tests\triton\python\setup.py", line 199, in open_url
    return urllib.request.urlopen(request, timeout=300)
  File "D:\Python\lib\urllib\request.py", line 216, in urlopen
    return opener.open(url, data, timeout)
  File "D:\Python\lib\urllib\request.py", line 525, in open
    response = meth(req, response)
  File "D:\Python\lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
  File "D:\Python\lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
  File "D:\Python\lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
  File "D:\Python\lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

This link https://anaconda.org/nvidia/cuda-nvcc/12.4.99/download/linux-AMD64/cuda-nvcc-12.4.99-0.tar.bz2 is 404.

Alternatively are there any newer versions of Windows WHLs for Triton? There is an older v2.1.0 WHL on various sites but nothing newer. Can someone/anyone please get a more recent Triton WHL built?

de-served commented 2 weeks ago

Same issue here

cmake, ninja, wheel installed and updated

git clone https://github.com/triton-lang/triton.git --depth 1
cd triton
pip install -e python

leads to:

  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... error
  error: subprocess-exited-with-error

  × Getting requirements to build editable did not run successfully.
  │ exit code: 1
  ╰─> [43 lines of output]
      downloading and extracting https://anaconda.org/nvidia/cuda-nvcc/12.4.99/download/linux-AMD64/cuda-nvcc-12.4.99-0.tar.bz2 ...
      Traceback (most recent call last):
        File "D:\Dev\Test\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
          main()
        File "D:\Dev\Test\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Dev\Test\venv\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 132, in get_requires_for_build_editable
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "C:\TEMP\pip-build-env-ssq12_o7\overlay\Lib\site-packages\setuptools\build_meta.py", line 458, in get_requires_for_build_editable
          return self.get_requires_for_build_wheel(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\TEMP\pip-build-env-ssq12_o7\overlay\Lib\site-packages\setuptools\build_meta.py", line 327, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "C:\TEMP\pip-build-env-ssq12_o7\overlay\Lib\site-packages\setuptools\build_meta.py", line 297, in _get_build_requires
          self.run_setup()
        File "C:\TEMP\pip-build-env-ssq12_o7\overlay\Lib\site-packages\setuptools\build_meta.py", line 497, in run_setup
          super().run_setup(setup_script=setup_script)
        File "C:\TEMP\pip-build-env-ssq12_o7\overlay\Lib\site-packages\setuptools\build_meta.py", line 313, in run_setup
          exec(code, locals())
        File "<string>", line 439, in <module>
        File "<string>", line 268, in download_and_copy
        File "<string>", line 199, in open_url
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 216, in urlopen
          return opener.open(url, data, timeout)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 525, in open
          response = meth(req, response)
                     ^^^^^^^^^^^^^^^^^^^
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 634, in http_response
          response = self.parent.error(
                     ^^^^^^^^^^^^^^^^^^
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 563, in error
          return self._call_chain(*args)
                 ^^^^^^^^^^^^^^^^^^^^^^^
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 496, in _call_chain
          result = func(*args)
                   ^^^^^^^^^^^
        File "D:\Dev\Python\3.11\Lib\urllib\request.py", line 643, in http_error_default
          raise HTTPError(req.full_url, code, msg, hdrs, fp)
      urllib.error.HTTPError: HTTP Error 404: Not Found
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build editable did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.