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
I was installing aihwkit on windows11 with this step
However, it gives me the following error
Using pip 22.3.1 from C:\Users\patrick\anaconda3\lib\site-packages\pip (python 3.10)
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --install-option is deprecated because it forces pip to use the 'setup.py install' command which is itself deprecated. pip 23.1 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11358
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting aihwkit
Using cached aihwkit-0.7.1.tar.gz (478 kB)
Running command python setup.py egg_info
running egg_info
creating C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info
writing C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\PKG-INFO
writing dependency_links to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\dependency_links.txt
writing requirements to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\requires.txt
writing top-level names to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\top_level.txt
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-3i2g0noo\aihwkit.egg-info\SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.9 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.0.1)
Requirement already satisfied: torchvision in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (0.15.2)
Requirement already satisfied: scipy in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.10.0)
Requirement already satisfied: requests<3,>=2.25 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.28.1)
Requirement already satisfied: numpy>=1.19 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.23.5)
Requirement already satisfied: protobuf>=4.21.6 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (4.23.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (1.26.14)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2022.12.7)
Requirement already satisfied: idna<4,>=2.5 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (3.4)
Requirement already satisfied: filelock in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.9.0)
Requirement already satisfied: typing-extensions in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (4.4.0)
Requirement already satisfied: sympy in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (1.11.1)
Requirement already satisfied: networkx in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (2.8.4)
Requirement already satisfied: jinja2 in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.1.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\patrick\anaconda3\lib\site-packages (from torchvision->aihwkit) (9.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\patrick\anaconda3\lib\site-packages (from jinja2->torch>=1.9->aihwkit) (2.1.1)
Requirement already satisfied: mpmath>=0.19 in c:\users\patrick\anaconda3\lib\site-packages (from sympy->torch>=1.9->aihwkit) (1.2.1)
Installing collected packages: aihwkit
DEPRECATION: aihwkit is being installed using the legacy 'setup.py install' method, because the '--no-binary' option was enabled for it and this currently disables local wheel building for projects that don't have a 'pyproject.toml' file. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/11451
Running command Running setup.py install for aihwkit
C:\Users\patrick\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
--------------------------------------------------------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Generator
Visual Studio 16 2019
could not find any instance of Visual Studio.
-- Configuring incomplete, errors occurred!
See also "C:/Users/patrick/AppData/Local/Temp/pip-install-b1jnd3gu/aihwkit_07aaef3d68e64d67bc38418f9ff090f0/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator - failure
--------------------------------------------------------------------------------
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building windows wheels for Python 3.10 requires Microsoft Visual Studio 2022.
Get it with "Visual Studio 2017":
https://visualstudio.microsoft.com/vs/
Or with "Visual Studio 2019":
https://visualstudio.microsoft.com/vs/
Or with "Visual Studio 2022":
https://visualstudio.microsoft.com/vs/
********************************************************************************
error: subprocess-exited-with-error
× Running setup.py install for aihwkit 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.
full command: 'C:\Users\patrick\anaconda3\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\patrick\\AppData\\Local\\Temp\\pip-install-b1jnd3gu\\aihwkit_07aaef3d68e64d67bc38418f9ff090f0\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record 'C:\Users\patrick\AppData\Local\Temp\pip-record-04phg2i6\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\patrick\anaconda3\Include\aihwkit' -DUSE_CUDA=ON -DRPU_BLAS=MKL '-GVisual Studio 16 2019'
cwd: C:\Users\patrick\AppData\Local\Temp\pip-install-b1jnd3gu\aihwkit_07aaef3d68e64d67bc38418f9ff090f0\
Running setup.py install for aihwkit ... error
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> aihwkit
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
(base) PS C:\Users\patrick> pip install -v aihwkit --install-option="-DUSE_CUDA=ON" --install-option="-DRPU_BLAS=MKL" --install-option="-GVisual Studio 16 2019"
Using pip 22.3.1 from C:\Users\patrick\anaconda3\lib\site-packages\pip (python 3.10)
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --install-option is deprecated because it forces pip to use the 'setup.py install' command which is itself deprecated. pip 23.1 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11358
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting aihwkit
Using cached aihwkit-0.7.1.tar.gz (478 kB)
Running command python setup.py egg_info
running egg_info
creating C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info
writing C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\PKG-INFO
writing dependency_links to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\dependency_links.txt
writing requirements to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\requires.txt
writing top-level names to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\top_level.txt
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-if9uca2u\aihwkit.egg-info\SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.9 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.0.1)
Requirement already satisfied: torchvision in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (0.15.2)
Requirement already satisfied: scipy in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.10.0)
Requirement already satisfied: requests<3,>=2.25 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.28.1)
Requirement already satisfied: numpy>=1.19 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.23.5)
Requirement already satisfied: protobuf>=4.21.6 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (4.23.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (1.26.14)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2.0.4)
Requirement already satisfied: idna<4,>=2.5 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (3.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2022.12.7)
Requirement already satisfied: filelock in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.9.0)
Requirement already satisfied: typing-extensions in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (4.4.0)
Requirement already satisfied: sympy in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (1.11.1)
Requirement already satisfied: networkx in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (2.8.4)
Requirement already satisfied: jinja2 in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.1.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\patrick\anaconda3\lib\site-packages (from torchvision->aihwkit) (9.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\patrick\anaconda3\lib\site-packages (from jinja2->torch>=1.9->aihwkit) (2.1.1)
Requirement already satisfied: mpmath>=0.19 in c:\users\patrick\anaconda3\lib\site-packages (from sympy->torch>=1.9->aihwkit) (1.2.1)
Installing collected packages: aihwkit
DEPRECATION: aihwkit is being installed using the legacy 'setup.py install' method, because the '--no-binary' option was enabled for it and this currently disables local wheel building for projects that don't have a 'pyproject.toml' file. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/11451
Running command Running setup.py install for aihwkit
C:\Users\patrick\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
--------------------------------------------------------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22622.
-- The C compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.29.30148.0
CMake Warning (dev) at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:162 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:183 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/patrick/AppData/Local/Temp/pip-install-moh4fb7b/aihwkit_fac1afd77b7c4a59a89184b6a3e88c57/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\_skbuild\win-amd64-3.10\cmake-build
Command:
'C:\Users\patrick\anaconda3\Library\bin\cmake.EXE' 'C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.9 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\patrick\anaconda3\lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython3_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' -T v142 -A x64 -DUSE_CUDA=ON -DRPU_BLAS=MKL -DCMAKE_BUILD_TYPE:STRING=Release
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22622.
-- The C compiler identification is MSVC 19.29.30148.0
-- The CXX compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Invoking cmake through scikit-build
-- The BLAS backend of choice:MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_intel_thread: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_thread.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Library libiomp5md: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_intel_thread: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_thread.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_sequential: C:/Users/patrick/anaconda3/Library/lib/mkl_sequential.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- MKL library found
-- MKL include for RPU is C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib;C:/Users/patrick/anaconda3/Library/lib/mkl_sequential.lib;C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Found PythonInterp: C:/Users/patrick/anaconda3/python.exe (found version "3.10.9")
-- Found PythonLibs: C:/Users/patrick/anaconda3/libs/python310.lib (found version "3.10.9")
-- Found PythonInterp: C:/Users/patrick/anaconda3/python.exe (found suitable version "3.10.9", minimum required is "3.6")
-- Found PythonLibs: C:/Users/patrick/anaconda3/libs/python310.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Found pybind11: C:/Users/patrick/anaconda3/Lib/site-packages/pybind11/include (found version "2.10.4")
-- Found Python: C:/Users/patrick/anaconda3/python.exe (found version "3.10.9") found components: Interpreter
-- Found Torch: C:/Users/patrick/anaconda3/Lib/site-packages/torch/include;C:/Users/patrick/anaconda3/Lib/site-packages/torch/include/torch/csrc/api/include
CMake Error at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:472 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCUDACompiler.cmake:298 (CMAKE_DETERMINE_COMPILER_ID)
cmake/dependencies_cuda.cmake:15 (enable_language)
CMakeLists.txt:40 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/patrick/AppData/Local/Temp/pip-install-moh4fb7b/aihwkit_fac1afd77b7c4a59a89184b6a3e88c57/_skbuild/win-amd64-3.10/cmake-build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/patrick/AppData/Local/Temp/pip-install-moh4fb7b/aihwkit_fac1afd77b7c4a59a89184b6a3e88c57/_skbuild/win-amd64-3.10/cmake-build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "C:\Users\patrick\anaconda3\lib\site-packages\skbuild\setuptools_wrap.py", line 666, in setup
env = cmkr.configure(
File "C:\Users\patrick\anaconda3\lib\site-packages\skbuild\cmaker.py", line 356, in configure
raise SKBuildError(msg)
An error occurred while configuring with CMake.
Command:
'C:\Users\patrick\anaconda3\Library\bin\cmake.EXE' 'C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.9 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\patrick\anaconda3\lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython3_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' -T v142 -A x64 -DUSE_CUDA=ON -DRPU_BLAS=MKL -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57
Working directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\_skbuild\win-amd64-3.10\cmake-build
Please see CMake's output for more information.
error: subprocess-exited-with-error
× Running setup.py install for aihwkit 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.
full command: 'C:\Users\patrick\anaconda3\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\patrick\\AppData\\Local\\Temp\\pip-install-moh4fb7b\\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record 'C:\Users\patrick\AppData\Local\Temp\pip-record-j01_mtwj\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\patrick\anaconda3\Include\aihwkit' -DUSE_CUDA=ON -DRPU_BLAS=MKL '-GVisual Studio 16 2019'
cwd: C:\Users\patrick\AppData\Local\Temp\pip-install-moh4fb7b\aihwkit_fac1afd77b7c4a59a89184b6a3e88c57\
Running setup.py install for aihwkit ... error
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> aihwkit
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
(base) PS C:\Users\patrick> python3 -m pip install -v aihwkit --install-option="-DUSE_CUDA=ON" --install-option="-DRPU_BLAS=MKL" --install-option="-GVisual Studio 16 2019"
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
(base) PS C:\Users\patrick> python -m pip install -v aihwkit --install-option="-DUSE_CUDA=ON" --install-option="-DRPU_BLAS=MKL" --install-option="-GVisual Studio 16 2019"
Using pip 22.3.1 from C:\Users\patrick\anaconda3\lib\site-packages\pip (python 3.10)
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option / --install-option. Consider using --config-settings for more flexibility.
DEPRECATION: --install-option is deprecated because it forces pip to use the 'setup.py install' command which is itself deprecated. pip 23.1 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11358
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Collecting aihwkit
Using cached aihwkit-0.7.1.tar.gz (478 kB)
Running command python setup.py egg_info
running egg_info
creating C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info
writing C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\PKG-INFO
writing dependency_links to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\dependency_links.txt
writing requirements to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\requires.txt
writing top-level names to C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\top_level.txt
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\SOURCES.txt'
reading manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.txt'
writing manifest file 'C:\Users\patrick\AppData\Local\Temp\pip-pip-egg-info-q3ajfb8n\aihwkit.egg-info\SOURCES.txt'
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=1.9 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.0.1)
Requirement already satisfied: torchvision in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (0.15.2)
Requirement already satisfied: scipy in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.10.0)
Requirement already satisfied: requests<3,>=2.25 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (2.28.1)
Requirement already satisfied: numpy>=1.19 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (1.23.5)
Requirement already satisfied: protobuf>=4.21.6 in c:\users\patrick\anaconda3\lib\site-packages (from aihwkit) (4.23.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (1.26.14)
Requirement already satisfied: idna<4,>=2.5 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (3.4)
Requirement already satisfied: charset-normalizer<3,>=2 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2.0.4)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\patrick\anaconda3\lib\site-packages (from requests<3,>=2.25->aihwkit) (2022.12.7)
Requirement already satisfied: filelock in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.9.0)
Requirement already satisfied: typing-extensions in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (4.4.0)
Requirement already satisfied: sympy in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (1.11.1)
Requirement already satisfied: networkx in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (2.8.4)
Requirement already satisfied: jinja2 in c:\users\patrick\anaconda3\lib\site-packages (from torch>=1.9->aihwkit) (3.1.2)
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in c:\users\patrick\anaconda3\lib\site-packages (from torchvision->aihwkit) (9.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\patrick\anaconda3\lib\site-packages (from jinja2->torch>=1.9->aihwkit) (2.1.1)
Requirement already satisfied: mpmath>=0.19 in c:\users\patrick\anaconda3\lib\site-packages (from sympy->torch>=1.9->aihwkit) (1.2.1)
Installing collected packages: aihwkit
DEPRECATION: aihwkit is being installed using the legacy 'setup.py install' method, because the '--no-binary' option was enabled for it and this currently disables local wheel building for projects that don't have a 'pyproject.toml' file. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/11451
Running command Running setup.py install for aihwkit
C:\Users\patrick\anaconda3\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
--------------------------------------------------------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22622.
-- The C compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is MSVC 19.29.30148.0
CMake Warning (dev) at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:162 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake:183 (elseif):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:4 (ENABLE_LANGUAGE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/patrick/AppData/Local/Temp/pip-install-8nl02wwk/aihwkit_d25b3e6c50a744f3867d414143bb6b6b/_cmake_test_compile/build
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying 'Visual Studio 16 2019 x64 v142' generator - success
--------------------------------------------------------------------------------
Configuring Project
Working directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\_skbuild\win-amd64-3.10\cmake-build
Command:
'C:\Users\patrick\anaconda3\Library\bin\cmake.EXE' 'C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.9 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\patrick\anaconda3\lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython3_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' -T v142 -A x64 -DUSE_CUDA=ON -DRPU_BLAS=MKL -DCMAKE_BUILD_TYPE:STRING=Release
Not searching for unused variables given on the command line.
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22622.
-- The C compiler identification is MSVC 19.29.30148.0
-- The CXX compiler identification is MSVC 19.29.30148.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Invoking cmake through scikit-build
-- The BLAS backend of choice:MKL
-- MKL_THREADING = OMP
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_intel_thread: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_thread.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Library libiomp5md: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_intel_thread: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_thread.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
-- Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
-- Library mkl_intel_lp64: C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib
-- Library mkl_sequential: C:/Users/patrick/anaconda3/Library/lib/mkl_sequential.lib
-- Library mkl_core: C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- MKL library found
-- MKL include for RPU is C:/Users/patrick/anaconda3/Library/lib/mkl_intel_lp64.lib;C:/Users/patrick/anaconda3/Library/lib/mkl_sequential.lib;C:/Users/patrick/anaconda3/Library/lib/mkl_core.lib
-- Found PythonInterp: C:/Users/patrick/anaconda3/python.exe (found version "3.10.9")
-- Found PythonLibs: C:/Users/patrick/anaconda3/libs/python310.lib (found version "3.10.9")
-- Found PythonInterp: C:/Users/patrick/anaconda3/python.exe (found suitable version "3.10.9", minimum required is "3.6")
-- Found PythonLibs: C:/Users/patrick/anaconda3/libs/python310.lib
-- Performing Test HAS_MSVC_GL_LTCG
-- Performing Test HAS_MSVC_GL_LTCG - Success
-- Found pybind11: C:/Users/patrick/anaconda3/Lib/site-packages/pybind11/include (found version "2.10.4")
-- Found Python: C:/Users/patrick/anaconda3/python.exe (found version "3.10.9") found components: Interpreter
-- Found Torch: C:/Users/patrick/anaconda3/Lib/site-packages/torch/include;C:/Users/patrick/anaconda3/Lib/site-packages/torch/include/torch/csrc/api/include
CMake Error at C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:472 (message):
No CUDA toolset found.
Call Stack (most recent call first):
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:6 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake:59 (__determine_compiler_id_test)
C:/Users/patrick/anaconda3/Library/share/cmake-3.22/Modules/CMakeDetermineCUDACompiler.cmake:298 (CMAKE_DETERMINE_COMPILER_ID)
cmake/dependencies_cuda.cmake:15 (enable_language)
CMakeLists.txt:40 (include)
-- Configuring incomplete, errors occurred!
See also "C:/Users/patrick/AppData/Local/Temp/pip-install-8nl02wwk/aihwkit_d25b3e6c50a744f3867d414143bb6b6b/_skbuild/win-amd64-3.10/cmake-build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/patrick/AppData/Local/Temp/pip-install-8nl02wwk/aihwkit_d25b3e6c50a744f3867d414143bb6b6b/_skbuild/win-amd64-3.10/cmake-build/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "C:\Users\patrick\anaconda3\lib\site-packages\skbuild\setuptools_wrap.py", line 666, in setup
env = cmkr.configure(
File "C:\Users\patrick\anaconda3\lib\site-packages\skbuild\cmaker.py", line 356, in configure
raise SKBuildError(msg)
An error occurred while configuring with CMake.
Command:
'C:\Users\patrick\anaconda3\Library\bin\cmake.EXE' 'C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b' -G 'Visual Studio 16 2019' --no-warn-unused-cli '-DCMAKE_INSTALL_PREFIX:PATH=C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\_skbuild\win-amd64-3.10\cmake-install' -DPYTHON_VERSION_STRING:STRING=3.10.9 -DSKBUILD:INTERNAL=TRUE '-DCMAKE_MODULE_PATH:PATH=C:\Users\patrick\anaconda3\lib\site-packages\skbuild\resources\cmake' '-DPYTHON_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPYTHON_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPYTHON_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython_FIND_REGISTRY:STRING=NEVER '-DPython_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' '-DPython3_EXECUTABLE:PATH=C:\Users\patrick\anaconda3\python.exe' '-DPython3_ROOT_DIR:PATH=C:\Users\patrick\anaconda3' -DPython3_FIND_REGISTRY:STRING=NEVER '-DPython3_INCLUDE_DIR:PATH=C:\Users\patrick\anaconda3\Include' '-DPython3_LIBRARY:PATH=C:\Users\patrick\anaconda3\libs\python310.lib' '-DPython3_NumPy_INCLUDE_DIRS:PATH=C:\Users\patrick\anaconda3\lib\site-packages\numpy\core\include' -T v142 -A x64 -DUSE_CUDA=ON -DRPU_BLAS=MKL -DCMAKE_BUILD_TYPE:STRING=Release
Source directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b
Working directory:
C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\_skbuild\win-amd64-3.10\cmake-build
Please see CMake's output for more information.
error: subprocess-exited-with-error
× Running setup.py install for aihwkit 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.
full command: 'C:\Users\patrick\anaconda3\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\patrick\\AppData\\Local\\Temp\\pip-install-8nl02wwk\\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' install --record 'C:\Users\patrick\AppData\Local\Temp\pip-record-wvko3emj\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\patrick\anaconda3\Include\aihwkit' -DUSE_CUDA=ON -DRPU_BLAS=MKL '-GVisual Studio 16 2019'
cwd: C:\Users\patrick\AppData\Local\Temp\pip-install-8nl02wwk\aihwkit_d25b3e6c50a744f3867d414143bb6b6b\
Running setup.py install for aihwkit ... error
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> aihwkit
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Pytorch version:
Package version: latest
OS: windows 11
Python version: 3.10
Conda version (or N/A): latest
The text was updated successfully, but these errors were encountered:
Hi @patrick-chen-98,
you are trying to install it with -DUSE_CUDA=ON but it seems that you do not have any CUDA toolkit installed. Do you have a nvidia GPU available on the system ? If so, you need to install the CUDA drivers, if not, you have to set -DUSE_CUDA=OFF
maljoras
added
question
Further information is requested
build
Issues related to build system and compilation/installing
and removed
bug
Something isn't working
question
Further information is requested
labels
May 11, 2023
Description
I was installing aihwkit on windows11 with this step
However, it gives me the following error
The text was updated successfully, but these errors were encountered: