ROCm / ROCm

AMD ROCm™ Software - GitHub Home

Home Page:https://rocm.docs.amd.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preserve behavior of -save-temps on ROCm 6.1

preda opened this issue · comments

Problem Description

On Ubuntu 22.04 w. linux kernel 6.7.5, Radeon Pro VII.
The behavior of the OpenCL compilation flag -save-temps seems altered on ROCm 6.1 vs. all previous ROCm versions.

The expected behavior: with -save-temps=folder/
the "temps" (.s, .so, .i etc) are written to that folder.

New observed behavior in 6.1: the value of the -save-temps=something is ignored, and some temps are written to the current folder, seemingly with overwriting names (when compiling multiple OpenCL programs in sequence).

Please restore the normal behavior of -save-temps in ROCm 6.1.

-save-temps is an important debug tool that has been around for decades with the AMD OpenCL stacks.

Caveat: ROCm 6.1 has not been released yet ATM.

Operating System

Ubuntu 22.04

CPU

not relevant

GPU

AMD Radeon Pro VII, AMD Radeon VII

ROCm Version

ROCm 6.0.0

ROCm Component

clang-ocl

Steps to Reproduce

No response

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

No response

Additional Information

No response

Such files are produced when using -save-temps in ROCm 6.1:

1721610038.cl
17216100382018202180.i
3128201597.s
31282015971792522278.so

The naming disregards the value passed to -save-temps, and these names are used repeteadly such that a sequence compilation of multiple programs rewrites them and only the last set remains. Seems broken.