Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I tried upgrade visual studio,cuda 12.4 and 12.6,but it still can't build the wheel,and return this #1117

Open
neutronslime opened this issue Sep 29, 2024 · 5 comments

Comments

@neutronslime
Copy link

❓ Questions and Help

C:\Users\npc23\AppData\Local\Temp\pip-install-h1q0rzya\xformers_805f34a4f57944f49849e632baae6a19\third_party\flash-attention\csrc\flash_attn\flash_api.cpp : fatal error C1083: 无法打开编译器生成的文: “”: Invalid argument
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers
Failed to build xformers
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (xformers)

@lw
Copy link
Contributor

lw commented Sep 30, 2024

I don't think that output is enough for us to figure out what went wrong. Could you include more of the logs?

Also, please note that Windows support is best-effort since we're not experts in it.

@neutronslime
Copy link
Author

I don't think that output is enough for us to figure out what went wrong. Could you include more of the logs?

Also, please note that Windows support is best-effort since we're not experts in it.

PS C:\WINDOWS\system32> pip install xformers
Collecting xformers
Using cached xformers-0.0.28.post1.tar.gz (7.8 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: torch>=2.4 in c:\program files\python310\lib\site-packages (from xformers) (2.4.1+cu124)
Requirement already satisfied: numpy in c:\program files\python310\lib\site-packages (from xformers) (1.26.4)
Requirement already satisfied: filelock in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (3.13.3)
Requirement already satisfied: typing-extensions>=4.8.0 in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (4.10.0)
Requirement already satisfied: sympy in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (1.12)
Requirement already satisfied: networkx in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (3.2.1)
Requirement already satisfied: jinja2 in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (3.1.3)
Requirement already satisfied: fsspec in c:\program files\python310\lib\site-packages (from torch>=2.4->xformers) (2024.3.1)
Requirement already satisfied: MarkupSafe>=2.0 in c:\program files\python310\lib\site-packages (from jinja2->torch>=2.4->xformers) (2.1.5)
Requirement already satisfied: mpmath>=0.19 in c:\program files\python310\lib\site-packages (from sympy->torch>=2.4->xformers) (1.3.0)
Building wheels for collected packages: xformers
Building wheel for xformers (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [433 lines of output]
fatal: Not a valid object name HEAD
running bdist_wheel
C:\Program Files\Python310\lib\site-packages\torch\utils\cpp_extension.py:495: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build\lib.win-amd64-cpython-310\xformers
copying xformers\attn_bias_utils.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers\checkpoint.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers\info.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers\test.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers\utils.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers_cpp_lib.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers_deprecation_warning.py -> build\lib.win-amd64-cpython-310\xformers
copying xformers_init_.py -> build\lib.win-amd64-cpython-310\xformers
creating build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_attn_decoding.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_core.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_indexing.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_mem_eff_attention.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_merge_attentions.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_multi_head_dispatch.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_nystrom_utils.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_revnet.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_sddmm.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_sequence_parallel_fused.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_sp24.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_swiglu.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\benchmark_tiled_matmul.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks\utils.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
copying xformers\benchmarks_init_.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks
creating build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\activations.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\input_projection.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\multi_head_dispatch.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\patch_embedding.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\residual.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\reversible.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components\simplicial_embedding.py -> build\lib.win-amd64-cpython-310\xformers\components
copying xformers\components_init_.py -> build\lib.win-amd64-cpython-310\xformers\components
creating build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory\block_configs.py -> build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory\block_factory.py -> build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory\hydra_helper.py -> build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory\model_factory.py -> build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory\weight_init.py -> build\lib.win-amd64-cpython-310\xformers\factory
copying xformers\factory_init_.py -> build\lib.win-amd64-cpython-310\xformers\factory
creating build\lib.win-amd64-cpython-310\xformers\helpers
copying xformers\helpers\hierarchical_configs.py -> build\lib.win-amd64-cpython-310\xformers\helpers
copying xformers\helpers\test_utils.py -> build\lib.win-amd64-cpython-310\xformers\helpers
copying xformers\helpers\timm_sparse_attention.py -> build\lib.win-amd64-cpython-310\xformers\helpers
copying xformers\helpers_init_.py -> build\lib.win-amd64-cpython-310\xformers\helpers
creating build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\common.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\differentiable_collectives.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\indexing.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\ipc.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\modpar_layers.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\rmsnorm.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\rope_padded.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\seqpar.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\sequence_parallel_fused_ops.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\sp24.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\swiglu_op.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\tiled_matmul.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops\unbind.py -> build\lib.win-amd64-cpython-310\xformers\ops
copying xformers\ops_init_.py -> build\lib.win-amd64-cpython-310\xformers\ops
creating build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\api.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\device_limits.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\find_slowest.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\profiler.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\profiler_dcgm.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\profiler_dcgm_impl.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler\profile_analyzer.py -> build\lib.win-amd64-cpython-310\xformers\profiler
copying xformers\profiler_init_.py -> build\lib.win-amd64-cpython-310\xformers\profiler
creating build\lib.win-amd64-cpython-310\xformers\sparse
copying xformers\sparse\blocksparse_tensor.py -> build\lib.win-amd64-cpython-310\xformers\sparse
copying xformers\sparse\csr_tensor.py -> build\lib.win-amd64-cpython-310\xformers\sparse
copying xformers\sparse\utils.py -> build\lib.win-amd64-cpython-310\xformers\sparse
copying xformers\sparse_csr_ops.py -> build\lib.win-amd64-cpython-310\xformers\sparse
copying xformers\sparse_init_.py -> build\lib.win-amd64-cpython-310\xformers\sparse
creating build\lib.win-amd64-cpython-310\xformers\triton
copying xformers\triton\vararg_kernel.py -> build\lib.win-amd64-cpython-310\xformers\triton
copying xformers\triton_init_.py -> build\lib.win-amd64-cpython-310\xformers\triton
creating build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\bert_padding.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\flash_attn_interface.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\flash_attn_triton.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\flash_attn_triton_og.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\flash_blocksparse_attention.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\flash_blocksparse_attn_interface.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn\fused_softmax.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
copying xformers_flash_attn_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn
creating build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\batch_fetch_results.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\batch_submit.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_grid_search.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_tasks.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA\run_with_submitit.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
copying xformers\benchmarks\LRA_init_.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA
creating build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code\dataset.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code\model_wrapper.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA\code
copying xformers\benchmarks\LRA\code_init_.py -> build\lib.win-amd64-cpython-310\xformers\benchmarks\LRA\code
creating build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\attention_mask.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\attention_patterns.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\base.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\compositional.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\core.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\favor.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\fourier_mix.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\global_tokens.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\lambda_layer.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\linformer.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\local.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\nystrom.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\ortho.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\pooling.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\random.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\scaled_dot_product.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\sparsity_config.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\utils.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention\visual.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention_sputnik_sparse.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
copying xformers\components\attention_init_.py -> build\lib.win-amd64-cpython-310\xformers\components\attention
creating build\lib.win-amd64-cpython-310\xformers\components\feedforward
copying xformers\components\feedforward\base.py -> build\lib.win-amd64-cpython-310\xformers\components\feedforward
copying xformers\components\feedforward\conv_mlp.py -> build\lib.win-amd64-cpython-310\xformers\components\feedforward
copying xformers\components\feedforward\mixture_of_experts.py -> build\lib.win-amd64-cpython-310\xformers\components\feedforward
copying xformers\components\feedforward\mlp.py -> build\lib.win-amd64-cpython-310\xformers\components\feedforward
copying xformers\components\feedforward_init_.py -> build\lib.win-amd64-cpython-310\xformers\components\feedforward
creating build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding\base.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding\param.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding\rotary.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding\sine.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding\vocab.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
copying xformers\components\positional_embedding_init_.py -> build\lib.win-amd64-cpython-310\xformers\components\positional_embedding
creating build\lib.win-amd64-cpython-310\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps\base.py -> build\lib.win-amd64-cpython-310\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps\softmax.py -> build\lib.win-amd64-cpython-310\xformers\components\attention\feature_maps
copying xformers\components\attention\feature_maps_init_.py -> build\lib.win-amd64-cpython-310\xformers\components\attention\feature_maps
creating build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\attn_bias.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\ck.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\ck_decoder.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\ck_splitk.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\common.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\cutlass.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\dispatch.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\flash.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\flash3.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\torch_attention_compat.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha\triton_splitk.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
copying xformers\ops\fmha_init_.py -> build\lib.win-amd64-cpython-310\xformers\ops\fmha
creating build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\k_index_select_cat.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\k_scaled_index_add.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\rmsnorm_kernels.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\rope_padded_kernels.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\sequence_parallel_fused_kernels.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton\tiled_matmul_kernels.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
copying xformers\ops_triton_init_.py -> build\lib.win-amd64-cpython-310\xformers\ops_triton
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\layers
copying xformers_flash_attn\layers\patch_embed.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\layers
copying xformers_flash_attn\layers\rotary.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\layers
copying xformers_flash_attn\layers_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\layers
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\losses
copying xformers_flash_attn\losses\cross_entropy.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\losses
copying xformers_flash_attn\losses_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\losses
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\baichuan.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\bert.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\bigcode.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\btlm.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\falcon.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\gpt.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\gptj.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\gpt_neox.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\llama.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\opt.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models\vit.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
copying xformers_flash_attn\models_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\models
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
copying xformers_flash_attn\modules\block.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
copying xformers_flash_attn\modules\embedding.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
copying xformers_flash_attn\modules\mha.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
copying xformers_flash_attn\modules\mlp.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
copying xformers_flash_attn\modules_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\modules
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
copying xformers_flash_attn\ops\activations.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
copying xformers_flash_attn\ops\fused_dense.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
copying xformers_flash_attn\ops\layer_norm.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
copying xformers_flash_attn\ops\rms_norm.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
copying xformers_flash_attn\ops_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
copying xformers_flash_attn\utils\benchmark.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
copying xformers_flash_attn\utils\distributed.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
copying xformers_flash_attn\utils\generation.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
copying xformers_flash_attn\utils\pretrained.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
copying xformers_flash_attn\utils_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\utils
creating build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\cross_entropy.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\k_activations.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\layer_norm.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\linear.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\mlp.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton\rotary.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
copying xformers_flash_attn\ops\triton_init_.py -> build\lib.win-amd64-cpython-310\xformers_flash_attn\ops\triton
running build_ext
C:\Program Files\Python310\lib\site-packages\torch\utils\cpp_extension.py:380: UserWarning: Error checking compiler version for cl: [WinError 2] 系统找不到指定的文件。
warnings.warn(f'Error checking compiler version for {compiler}: {error}')
building 'xformers._C_flashattention' extension
creating build\temp.win-amd64-cpython-310\Release\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\flash_attn
creating build\temp.win-amd64-cpython-310\Release\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\flash_attn\src
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -IC:\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\flash_attn -IC:\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\flash_attn\src -IC:\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\cutlass\include "-IC:\Program Files\Python310\lib\site-packages\torch\include" "-IC:\Program Files\Python310\lib\site-packages\torch\include\torch\csrc\api\include" "-IC:\Program Files\Python310\lib\site-packages\torch\include\TH" "-IC:\Program Files\Python310\lib\site-packages\torch\include\THC" "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include" "-IC:\Program Files\Python310\include" "-IC:\Program Files\Python310\Include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\cppwinrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" /EHsc /TpC:\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc/flash_attn/flash_api.cpp /Fobuild\temp.win-amd64-cpython-310\Release\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc/flash_attn/flash_api.obj /MD /wd4819 /wd4251 /wd4244 /wd4267 /wd4275 /wd4018 /wd4190 /wd4624 /wd4067 /wd4068 /EHsc -O3 -std=c++17 /MP /Zc:lambda /Zc:preprocessor /Zc:__cplusplus -DFLASHATTENTION_DISABLE_ALIBI -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C_flashattention -D_GLIBCXX_USE_CXX11_ABI=0 /std:c++17
cl: 命令行 warning D9002 :忽略未知选项“-O3”
cl: 命令行 warning D9002 :忽略未知选项“-std=c++17”
flash_api.cpp
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(434): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(438): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(442): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(446): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(450): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(454): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(458): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(462): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(466): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(470): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(474): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(478): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(482): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(486): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(490): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(494): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(498): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(502): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(759): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(774): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(789): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(804): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(819): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(834): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(849): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(864): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(879): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(894): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(895): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(910): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(911): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(926): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(927): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(942): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(943): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(959): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(962): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(978): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(981): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(997): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1000): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1016): warning C4996: 'bsrsv2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1019): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1113): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1130): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1147): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1164): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1181): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1198): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1215): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1232): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1249): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1266): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1267): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1284): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1285): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1302): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1303): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1320): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1321): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1339): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1344): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1362): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1367): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1385): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1390): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1408): warning C4996: 'bsrsm2Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1413): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1423): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1431): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1439): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1447): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1455): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1467): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1479): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1491): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1503): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1515): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1527): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1539): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1551): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1563): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1564): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1576): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1577): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1589): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1590): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1602): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1603): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1615): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1616): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1628): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1629): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1641): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1642): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1654): warning C4996: 'csrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1655): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1661): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1669): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1677): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1685): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1693): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1707): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1721): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1735): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1749): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1763): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1777): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1791): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1805): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1819): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1820): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1834): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1835): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1849): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1850): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1864): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1865): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1879): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1880): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1894): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1895): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1909): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1910): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1924): warning C4996: 'bsrilu02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1925): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1931): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1943): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1955): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1967): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1979): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(1991): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2003): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2015): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2027): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2039): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2040): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2052): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2053): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2065): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2066): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2078): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2079): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2091): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2092): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2104): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2105): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2117): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2118): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2130): warning C4996: 'csric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2131): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2137): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2151): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2165): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2179): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2193): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2207): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2221): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2235): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2249): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2263): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2264): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2278): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2279): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2293): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2294): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2308): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2309): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2323): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2324): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2338): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2339): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2354): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2355): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2369): warning C4996: 'bsric02Info_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(2370): warning C4996: 'cusparseSolvePolicy_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(3043): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(3058): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(3073): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(3088): warning C4996: 'cusparseColorInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4152): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4164): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4176): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4188): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4201): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4214): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4227): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4240): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4253): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4266): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4279): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4292): warning C4996: 'csru2csrInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4601): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4619): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4635): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4652): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4668): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4683): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4700): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4717): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4732): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4753): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4774): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4793): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4813): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4833): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4851): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4871): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4891): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.4\include\cusparse.h(4909): warning C4996: 'pruneInfo_t': The type will be removed in the next major release
C:\Users\npc23\AppData\Local\Temp\pip-install-uc7mptn7\xformers_33a2d70f0eb3443d85a2c3af75c0c3c2\third_party\flash-attention\csrc\flash_attn\flash_api.cpp : fatal error C1083: 无法打开编译器生成的文件: “”: Invalid argument
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\HostX86\x64\cl.exe' failed with exit code 1
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for xformers
Running setup.py clean for xformers

@lw
Copy link
Contributor

lw commented Sep 30, 2024

Thanks. There's nothing that looks especially amiss, except perhaps two things:

  • your system doesn't have ninja installed, perhaps you could try installing it to see if it changes anything
  • there's a warning about checking the compiler version, I wonder if it could be due to your MSVC being too new? any chance you can try an older version?

@NeedsMoar
Copy link

The error checking compiler version is almost certainly because ninja and isn't installed and just aren't finding the compiler right at that stage. Its setup.py has an explicit hook / extension to ninja that it uses to build the extension rather than letting the build system use it as an option to accelerate the build, so it's a requirement. Ninja is actually detrimental to build speeds on Windows but it's easier to just deal with it. I mean it's part of the setup_requires in setup.py for flash_attention even... except I think it needs to be in a different _requires section or in pyproject.toml's [build-system] requires [ or it would be installing it to do the build.

setup_requires=[
        "packaging",
        "psutil",
        "ninja",
    ],

The only issue I see with the compiler version is that you're using the 32-bit host compiler that targets x64. This project needs a ton of memory to build so you probably shouldn't do that. It shouldn't even be choosing it unless you're trying to install from a visual studio command prompt; flash attention builds will break if you run from the compiler environment because ninja duplicates options (but visual studio / nvcc handles all that stuff in its own integrations), so go to a clean prompt, make sure the compiler isn't on your default path, and try again if just installing ninja doesn't fix it.

Also it's not quite related, but something is injecting all of these disable-warning commands to both compilers; it doesn't appear to be xformers or flash attention but they range from bone-stupid to meh in terms of not being warned about them. The narrowing conversions are the worst:
C4819 - The file contains a character that cannot be represented in the current code page (number). Save the file in Unicode format to prevent data loss. (the entire fix for this is saving the file as UTF-8, but potentially having some silent explosion works too I guess)
C4251 - 'type' : class 'type1' needs to have dll-interface to be used by clients of class 'type2' (exported classes with members or base classes that aren't exported. Could range from not causing issues to corrupted classes or other data)
C4244 - 'argument' : conversion from 'type1' to 'type2', possible loss of data (I guess somebody wants implicit casts from double to short with no warnings)
C4267 - 'var' : conversion from 'size_t' to 'type', possible loss of data (narrowing of size_t detected, usually unwanted)
C4275 - non - DLL-interface class 'class_1' used as base for DLL-interface class 'class_2' (I'm assuming this was the warning telling them exactly where they were screwing up to cause C4251 to fire in case they didn't get that the compiler was trying to tell them this was a bad idea the first time)
C4018 - 'token' : signed/unsigned mismatch (signed implicitly converted to unsigned in a comparison, so the comparison probably isn't doing what you think it is)
C4190 - 'identifier1' has C-linkage specified, but returns UDT 'identifier2' which is incompatible with C (would have been easier to fix than to disable the warning. having bad linkage for a return type is bad, mmkay)
C4624 - 'derived class' : destructor was implicitly defined as deleted because a base class destructor is inaccessible or deleted (somebody probably threw a dtor somewhere outside of the public section, object can't be created on the stack and will throw a compiler error if it's attempted which is worse than fixing this)
C4067 - unexpected tokens following preprocessor directive - expected a newline (random crap on line after a macro that shouldn't be there, can be fixed by commenting it out. This might be some GCC-specific preprocessor extension which is something that should be fixed anyway but it's probably more valid than most of these)
C4068 - unknown pragma (this one won't hurt anything, probably, but it would have been better to conditionalize)

Unfortunately I can't give any real suggestions on removing these from the ninja compiler commands since I don't know what is generating them or why. I always made it a point to build with /Werror on C++ projects and fix everything so I'm pedantic.

@NeedsMoar
Copy link

NeedsMoar commented Oct 20, 2024

Torch's minimum compiler version is 19.0.24215 btw. The highest version I have is the same 14.41.34120 you have, which is compiler version 19.41.34120, the lowest is 19.29.30154 from march of this year, so no version issues.

The only way torch throws that error on windows is if the version it actually detects is too low, which is possible if you have one from an older VS version set on the path on purpose but not likely, or if it errors running CL.exe or parsing the 3 digit number out with a regex. I suppose it could also happen with the windows store python version which wouldn't be able to call executables outside its own directory tree, but since torch also calls LoadModuleA on kernel32.dll at runtime and directly looks up functions in it I doubt it would work if that were the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants