【Jetson Thor】Cutlass FP4/FP8/FP16 Performance Test

Hi,

I have recently been using CUTLASS to test the TFLOPS of Jetson Thor T5000
Reference Documents:

Environment Preparation:

sudo jetson_clocks

Compilation Steps:

git clone https://github.com/NVIDIA/cutlass.git
cd cutlass
export CUDACXX=/usr/local/cuda-13.0/bin/nvcc
mkdir build && cd build
cmake .. -DCUTLASS_NVCC_ARCHS="110a" -DCUTLASS_LIBRARY_KERNELS=all  -DCUTLASS_UNITY_BUILD_ENABLED=ON
make cutlass_profiler -j12

Specific Questions:

  1. How can I test to achieve results closest to the official specifications on the Jetson Thor T5000? My current test results are consistent with those posted on other forums, peaking at over 800 TFLOPS for FP4.
  2. What is the actual test figure from NVIDIA?

Hi,

We don’t have the cutlass benchmark score for Thor.
Instead, you can find the LLM-related perf data in the link below:

Thanks.

Hi,

We are trying our best to test for performance as close to the officially claimed 1035 TFLOPS as possible. Could you offer some assistance?

Hi,

For cutlass, please try below command:

$ git clone https://github.com/NVIDIA/cutlass.git
$ cd cutlass
$ export CUDACXX=/usr/local/cuda-13.2/bin/nvcc
$ mkdir build && cd build
$ cmake .. -DCUTLASS_NVCC_ARCHS="110a" -DCUTLASS_LIBRARY_KERNELS="*sptensorop*,*spgemm*" -DCUTLASS_UNITY_BUILD_ENABLED=ON
$ make cutlass_profiler -j12
$ sudo nvpmodel -m 0 && sudo jetson_clocks
$ ./tools/profiler/cutlass_profiler --kernels="*sptensorop*e4m3*"   --m=8192 --n=8192 --k=8192

We test this on AGX Thor for FP8 with JetPack 7.2:

Problem,Provider,OperationKind,Operation,Disposition,Status,gemm_kind,m,n,k,A,B,C,D,alpha,beta,split_k_mode,split_k_slices,batch_count,runtime_input_datatype_a,runtime_input_datatype_b,raster_order,swizzle_size,use_pdl,op_class,accum,cta_m,cta_n,cta_k,cluster_m,cluster_n,cluster_k,cluster_m_fallback,cluster_n_fallback,cluster_k_fallback,stages,warps_m,warps_n,warps_k,inst_m,inst_n,inst_k,min_cc,max_cc,Bytes,Flops,Flops/Byte,Runtime,GB/s,GFLOPs
...
1,CUTLASS,gemm,cutlass3x_sm100_bssptensorop_spgemm_ue4m3xe2m1_ue4m3xe2m1_f32_bf16_e4m3xe2m1_256x128x256_0x0x1_0_tnt_align64_o_vs16_2sm_epi_tma_epiVs32t,passed,success,universal,8192,8192,8192,fe2m1:row,fe2m1:column,bf16:row,fe2m1:row,1,0,serial,1,1,invalid,invalid,heuristic,1,false,sptensorop,f32,256,128,256,2,1,1,2,1,1,9,4,1,1,256,128,128,100,1024,205520896,1099645845504,5350,1.63641,116.967,671985

You can play around with the matrix size and type to get an optimal value.

Thanks.

Hi,

Is this FP8?

cutlass3x_sm100_bssptensorop_spgemm_ue4m3xe2m1_ue4m3xe2m1_f32_bf16_e4m3xe2m1_256x128x256_0x0x1_0_tnt_align64_o_vs16_2sm_epi_tma_epiVs32t

The following are my test results

./tools/profiler/cutlass_profiler --kernels="cutlass3x_sm100_bssptensorop_spgemm_ue4m3xe2m1_ue4m3xe2m1_f32_bf16_e4m3xe2m1_256x128x256_0x0x1_0_tnt_align64_o_vs16_2sm_epi_tma_epiVs32t"   --m=8192 --n=8192 --k=8192



=============================
  Problem ID: 1

        Provider: CUTLASS
   OperationKind: gemm
       Operation: cutlass3x_sm100_bssptensorop_spgemm_ue4m3xe2m1_ue4m3xe2m1_f32_bf16_e4m3xe2m1_256x128x256_0x0x1_0_tnt_align64_o_vs16_2sm_epi_tma_epiVs32t

          Status: Success
    Verification: ON
     Disposition: Passed

  reference_host: Passed
          cuBLAS: Not run

       Arguments: --gemm_kind=universal --m=8192 --n=8192 --k=8192 --A=fe2m1:row --B=fe2m1:column --C=bf16:row --D=fe2m1:row  \
                  --alpha=1 --beta=0 --split_k_mode=serial --split_k_slices=1 --batch_count=1 --runtime_input_datatype_a=invalid  \
                  --runtime_input_datatype_b=invalid --raster_order=heuristic --swizzle_size=1 --use_pdl=false --op_class=sptensorop  \
                  --accum=f32 --cta_m=256 --cta_n=128 --cta_k=256 --cluster_m=2 --cluster_n=1 --cluster_k=1 --cluster_m_fallback=2  \
                  --cluster_n_fallback=1 --cluster_k_fallback=1 --stages=9 --warps_m=4 --warps_n=1 --warps_k=1 --inst_m=256  \
                  --inst_n=128 --inst_k=128 --min_cc=100 --max_cc=1024

           Bytes: 205520896  bytes
           FLOPs: 1099645845504  flops
           FLOPs/Byte: 5350

         Runtime: 1.63598  ms
          Memory: 116.998 GiB/s

            Math: 672162 GFLOP/s


=============================

CSV Results:

Problem,Provider,OperationKind,Operation,Disposition,Status,gemm_kind,m,n,k,A,B,C,D,alpha,beta,split_k_mode,split_k_slices,batch_count,runtime_input_datatype_a,runtime_input_datatype_b,raster_order,swizzle_size,use_pdl,op_class,accum,cta_m,cta_n,cta_k,cluster_m,cluster_n,cluster_k,cluster_m_fallback,cluster_n_fallback,cluster_k_fallback,stages,warps_m,warps_n,warps_k,inst_m,inst_n,inst_k,min_cc,max_cc,Bytes,Flops,Flops/Byte,Runtime,GB/s,GFLOPs
1,CUTLASS,gemm,cutlass3x_sm100_bssptensorop_spgemm_ue4m3xe2m1_ue4m3xe2m1_f32_bf16_e4m3xe2m1_256x128x256_0x0x1_0_tnt_align64_o_vs16_2sm_epi_tma_epiVs32t,passed,success,universal,8192,8192,8192,fe2m1:row,fe2m1:column,bf16:row,fe2m1:row,1,0,serial,1,1,invalid,invalid,heuristic,1,false,sptensorop,f32,256,128,256,2,1,1,2,1,1,9,4,1,1,256,128,128,100,1024,205520896,1099645845504,5350,1.63598,116.998,672162

Hi,

How is the officially rated 2070 FP4 tested?

Hi

Please note that the TFLOPS mentioned in our spec is a theoretical value.

We don’t have official data with Cutlass.
But there are several scores with the LLM-related use case as mentioned above.

If you want to test FP4 on your own, please change the compiling command to:

$ cmake .. -DCUTLASS_NVCC_ARCHS="110a"          -DCUTLASS_LIBRARY_KERNELS="*e2m1*,*nvf4*,*sptensorop*"          -DCUTLASS_UNITY_BUILD_ENABLED=ON

And test with:

$ ./tools/profiler/cutlass_profiler --kernels="*e2m1*" \
  --m=8192 --n=8192 --k=16384 \
  --warmup-iterations=10 --profiling-iterations=100

Similarly, you can test it with difference matrix size to get an optimal performance.
Thanks.

Hi

Could you tell me how the theoretical value is calculated? Could you share the calculation process with me?

Hi,

This is based on NVIDIA’s official peak AI compute specification.

Thanks.

Hi,

If we want to test the maximum computing power, how should we proceed? Do we need to conduct tests with different values of m, n, k and various Operations? However, such testing will take a very long time. Additionally, what is the value range for m, n and k?

Hi,

It depends on your target.
Is it for a stress test, or do you want to measure the maximal power?

Thanks

Hi,

I want to test the highest computing power possible

Hi,

Please check the link below for the stress test command:

We expect the cuBLAS test to have higher average GPU power and the LLM test to have higher instant GPU power.

Thanks.

Hi,

There may be ambiguity in my description. What I mean is that I want to test the maximum TFLOPS.

Hi,

For TFLOPS, please use cutlass.
Please try above tool.

Thanks.