<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SYCL for llama.cpp.python in Intel® oneAPI DPC++/C++ Compiler</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/SYCL-for-llama-cpp-python/m-p/1587543#M3634</link>
    <description>&lt;P&gt;This doesn't look like a compiler issue. This forum is for questions related to Intel DPC++/C++ compiler.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Apr 2024 00:03:37 GMT</pubDate>
    <dc:creator>Alex_Y_Intel</dc:creator>
    <dc:date>2024-04-09T00:03:37Z</dc:date>
    <item>
      <title>SYCL for llama.cpp.python</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/SYCL-for-llama-cpp-python/m-p/1586164#M3598</link>
      <description>&lt;P&gt;I'm trying to use SYCL as my hardware acclerator for using my GPU in Windows 10&lt;BR /&gt;My GPU is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre2802_0-1712208574092.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53324iDACB7CB14DB1D534/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Pre2802_0-1712208574092.png" alt="Pre2802_0-1712208574092.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have installed intel OneAPI toolkit.&lt;BR /&gt;Im not able to use my GPU despite doing the following commands in command prompt&lt;BR /&gt;1. I ran my setvars.bat file in&amp;nbsp;C:\Program Files (x86)\Intel\oneAPI directory&lt;BR /&gt;2. set CMAKE_ARGS="-DLLAMA_SYCL=on -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx"&lt;BR /&gt;3. set FORCE_CMAKE=1&lt;BR /&gt;4. pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir --verbose&lt;BR /&gt;&lt;BR /&gt;The llama-cpp-python gets installed properly but I'm getting error when am loading the import statement&lt;BR /&gt;&lt;BR /&gt;Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. &amp;gt;&amp;gt;&amp;gt; from llama_cpp import Llama Traceback (most recent call last): File "C:\Python\Python311\site-packages\llama_cpp\llama_cpp.py", line 70, in _load_shared_library return ctypes.CDLL(str(_lib_path), **cdll_args) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Program Files\Python311\Lib\ctypes\__init__.py", line 376, in __init__ self._handle = _dlopen(self._name, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^ OSError: [WinError 193] %1 is not a valid Win32 application During handling of the above exception, another exception occurred: Traceback (most recent call last): File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt; File "C:\Python\Python311\site-packages\llama_cpp\__init__.py", line 1, in &amp;lt;module&amp;gt; from .llama_cpp import * File "C:\Python\Python311\site-packages\llama_cpp\llama_cpp.py", line 83, in &amp;lt;module&amp;gt; _lib = _load_shared_library(_lib_base_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python\Python311\site-packages\llama_cpp\llama_cpp.py", line 72, in _load_shared_library raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}") RuntimeError: Failed to load shared library 'C:\Python\Python311\site-packages\llama_cpp\llama.dll': [WinError 193] %1 is not a valid Win32 application&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Pre2802_1-1712209751224.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53325i4B501E27851F3D04/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Pre2802_1-1712209751224.png" alt="Pre2802_1-1712209751224.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 05:52:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/SYCL-for-llama-cpp-python/m-p/1586164#M3598</guid>
      <dc:creator>Pre2802</dc:creator>
      <dc:date>2024-04-04T05:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: SYCL for llama.cpp.python</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/SYCL-for-llama-cpp-python/m-p/1587543#M3634</link>
      <description>&lt;P&gt;This doesn't look like a compiler issue. This forum is for questions related to Intel DPC++/C++ compiler.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 00:03:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-DPC-C-Compiler/SYCL-for-llama-cpp-python/m-p/1587543#M3634</guid>
      <dc:creator>Alex_Y_Intel</dc:creator>
      <dc:date>2024-04-09T00:03:37Z</dc:date>
    </item>
  </channel>
</rss>

