Skip to content

[Issue]: sccache doesn't cache anything #3398

@dimon777

Description

@dimon777

Problem Description

NAME="Debian GNU/Linux"
VERSION="12 (bookworm)"
CPU: 
model name	: AMD EPYC 7532 32-Core Processor
GPU:
  Name:                    AMD EPYC 7532 32-Core Processor    
  Marketing Name:          AMD EPYC 7532 32-Core Processor    
  Name:                    gfx1201                            
  Marketing Name:          AMD Radeon AI PRO R9700            
      Name:                    amdgcn-amd-amdhsa--gfx1201         
      Name:                    amdgcn-amd-amdhsa--gfx12-generic   
  Name:                    gfx1201                            
  Marketing Name:          AMD Radeon AI PRO R9700            
      Name:                    amdgcn-amd-amdhsa--gfx1201         
      Name:                    amdgcn-amd-amdhsa--gfx12-generic   
  Name:                    gfx1201                            
  Marketing Name:          AMD Radeon AI PRO R9700            
      Name:                    amdgcn-amd-amdhsa--gfx1201         
      Name:                    amdgcn-amd-amdhsa--gfx12-generic   
  Name:                    gfx1201                            
  Marketing Name:          AMD Radeon AI PRO R9700            
      Name:                    amdgcn-amd-amdhsa--gfx1201         
      Name:                    amdgcn-amd-amdhsa--gfx12-generic  

I am following docs and after running make -j24 I see that sccache doesn't really cache the build:

~$ sccache --show-stats
Compile requests                    408
Compile requests executed             0
Cache hits                            0
Cache misses                          0
Cache timeouts                        0
Cache read errors                     0
Forced recaches                       0
Cache write errors                    0
Compilation failures                  0
Cache errors                          0
Non-cacheable compilations            0
Non-cacheable calls                 408
Non-compilation calls                 0
Unsupported compiler calls            0
Average cache write               0.000 s
Average compiler                  0.000 s
Average cache read hit            0.000 s
Failed distributed compilations       0

Non-cacheable reasons:
-x                                  408

Cache location                  Local disk: "/home/jimmy/.cache/sccache"

The compillation is using scache, yet the /home/jimmy/.cache/sccache is empty - nothing is stored there.

cd /home/jimmy/github/ROCm/composable_kernel/build/library/src/tensor_operation_instance/gpu/grouped_conv2d_bwd_weight
 && sccache /opt/rocm/llvm/bin/clang++ -DCK_ENABLE_BF16 -DCK_ENABLE_BF8 -DCK_ENABLE_FP16 -
DCK_ENABLE_FP32 -DCK_ENABLE_FP64 -DCK_ENABLE_FP8 -DCK_ENABLE_INT8 -DCK_TILE_USE_WMMA=1 -
DCK_TIME_KERNEL=1 -DCK_USE_OCP_FP8 -DCK_USE_WMMA -DCK_USE_WMMA_FP8 -DCK_USE_XDL -
DDPP_KERNELS -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -D__HIP_PLATFORM_HCC__=1 -I/home/jimmy/
github/ROCm/composable_kernel/library/include - ...

Operating System

Dwbian 12

CPU

AMD Epyc 7002

GPU

Other

Other

R9700

ROCm Version

ROCm 7.1.0

ROCm Component

No response

Steps to Reproduce

Just follow README.md to build from source

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions