cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

missing kernels for sm_100a build

Open leimingyu opened this issue 10 months ago • 2 comments

Hi There,

I am trying to build cutlass on windows 11 with toolkit 12.8 and visual studio 2019. I used the following command to build it.

cutlass\build> cmake ..  -DCUTLASS_NVCC_ARCHS="100a"  -DCUTLASS_UNITY_BUILD_ENABLED=OFF -DCUTLASS_ENABLE_TESTS=OFF -DCUTLASS_ENABLE_CUDNN=OFF -DCUTLASS_ENABLE_CUBLAS=OFF

But I got an error like below. Any suggestions? Thanks in advance.

INFO:manifest:Emitting cutlass3x_sm100_bstensorop_s256x128x32gemm_block_scaled_ue8m0xf4_ue8m0xf4_f32_f16_ue8m0xe5m2_256x128x128_2x1x1_0_tnt_align128_stream_k_q_2sm_epiVs32t with 1 operation.
Traceback (most recent call last):
  File "C:\Users\leimyu\Downloads\cutlass\python\cutlass_library\generator.py", line 9056, in <module>
    manifest.emit(GeneratorTarget.Library)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leimyu\Downloads\cutlass\python\cutlass_library\manifest.py", line 852, in emit
    operation_kind_emitter.emit(configuration_name, operations)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leimyu\Downloads\cutlass\python\cutlass_library\manifest.py", line 324, in emit
    with self.emitters[self.kind](subclass_dir, configuration_name) as configuration_emitter:
         ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\leimyu\Downloads\cutlass\python\cutlass_library\gemm_operation.py", line 1458, in __enter__
    self.configuration_file = open(self.configuration_path, "w")
                              ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:/Users/leimyu/Downloads/cutlass/build/tools/library/generated/gemm/100/f16_s256x128x32gemm_block_scaled_f4/cutlass3x_sm100_bstensorop_s256x128x32gemm_block_scaled_ue8m0xf4_ue8m0xf4_f32_f16_ue8m0xe5m2_256x128x128_2x1x1_0_tnt_align128_stream_k_q_2sm_epiVs32t.cu'

leimingyu avatar Feb 13 '25 17:02 leimingyu

As we claimed in README.md, we are aware that our windows build has issues. we welcome the community to help us.

cc @d-k-b

hwu36 avatar Feb 19 '25 03:02 hwu36

@leimingyu , can you ensure the system is configured as shown in the windows build guide? Typically if you see these "file not found" related errors it is a path length issue. It would be good to try setting your build folder to something shorter like c:\temp\cutlass-build just to ensure that is not the issue.

d-k-b avatar Feb 24 '25 20:02 d-k-b

Changed the maximum file path length setting to 1 on windows. Update the repo and rebuild. It worked! Thanks!

leimingyu avatar Feb 28 '25 17:02 leimingyu