You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'stdlib.h' file not found during 1st install on AMD/Windows #7595
(...)
In file included from \\?\C:\Users\Falco\AppData\Local\Temp\tmpfwwudrt2\hip_utils.c:2:
C:\Users\Falco\.unsloth\studio\unsloth_studio\Lib\site-packages\triton\backends\amd\include\hip/hip_runtime.h(49,10): fatal error:
'stdlib.h' file not found
49 | #include <stdlib.h>
The error you are encountering happens because the clang-cl.exe compiler (used by the Triton/ROCm backend in your Unsloth environment) cannot locate the standard C library headers. On Windows, files like stdlib.h are provided by the Windows SDK and Visual Studio C++ Build Tools, and your current terminal environment does not have the correct paths set to find them.
installation instruction are not mentioning the fix or would be nice to add it to the installer.
Here is how you can fix this issue:
Install Visual Studio Build Tools
If you haven't already installed the required C++ build tools, you need to add them via the Visual Studio Installer.
Activity
Ask the compiler before disabling torch.compile
fix(amd): don't enable torch.compile when Triton's C toolchain can't …