Closed BeamFain closed 8 months ago
how did you add the "MinGW Makefiles" before compiling. can you help elaborate these steps, I'm also getting the same error as you
how did you add the "MinGW Makefiles" before compiling. can you help elaborate these steps, I'm also getting the same error as you
$env:CMAKE_GENERATOR = "MinGW Makefiles" The logs above me shows every command I used. You can take a look for the others too.
I changed the MinGW version to MinGW-w64 11.0.1 and retried just now and it worked. So, case closed I guess.
Prerequisites
Please answer the following questions for yourself before submitting an issue.
Expected Behavior
I have tried to install SYCL following the instructions and expected it to work I guess.
Environment and Context
CPU: Ryzen 5 2600 GPU: Intel Arc A750 RAM: 32 GB 2993 Mhz OS: Windows 11 Pro (x64) 23H2 Display Driver: Intel® Graphics Driver 31.0.101.5186/31.0.101.5234 (WHQL Certified)
Python: Python 3.11.8 CMake: CMake 3.28.3 Microsoft Visual Studio 2022 version 17.9.0 Intel OneAPI version 2024.0.0 MinGW32 GNU C and C++ Compiler version 6.3.0-1
First of all, I have installed and used llama-cpp-python[server] using Vulkan and CLBlast. However, they at most used 20% of the VRAM and the performance wasn't satisfactory. (I have tried using several different quantized models including mistral-7b-instruct-v0.2 and Wizard-Vicuna-7B)
That's why I have decided to try SYCL to make the most of my hardware. I downloaded OneAPI and faced my first roadblock not long after. I simply couldn't use the "source /opt/intel/oneapi/setvars.sh" command. First of all, there were no setvars.sh file in my OneAPI installation. I had setvars.bat in the "C:\Program Files (x86)\Intel\oneAPI" directory and tried to use it similarly to this command but it didn't work. That is when I found this Intel Guide page.
I have started the OneAPI environment according to the instructions in that page (cmd.exe "/K" '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" && powershell') and started building after CMake arguments: "CMAKE_ARGS="-DLLAMA_SYCL=on -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx". Unfortunately, it failed and the system gave the error below:
I have solved this problem by downloading MinGW and adding "MinGW Makefiles" before compiling. Which gave me a new error that said the icpx compiler was broken. (Probably because I am on Windows) That is why I changed the CMake arguments to "CMAKE_ARGS="-DLLAMA_SYCL=on -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icx".
After all that effort (I am pretty new to all of this) it finally compiled. I opened another Powershell window and happily started the server and this time I faced another new error:
Now, if I start another OneAPI environment using the "cmd.exe "/K" '"C:\Program Files (x86)\Intel\oneAPI\setvars.bat" && powershell'" command and then try starting the server again it actually starts. However, it never completes the startup and gives "OSError: exception: access violation reading 0x0000000000000020" error at the end. I am adding the full log of this last error below.
Failure Logs