Fix temp file naming scheme
When -save-temps is enabled temp file of lld step is named as "a-${AOMP_GPU}.out-openmp-amdgcn-amd-amdhsa.out".
It is messy but consistent with right extension. A follow up patch will clean up the naming scheme.
@@ -59,10 +59,8 @@ CC=$(AOMP)/bin/clang
$(TESTNAME).exe: $(TESTNAME).$(FILETYPE)
$(CC) $(OMP_TARGET_FLAGS) test_omp.c -o test_omp.exe
test -f test_omp-host-x86_64-unknown-linux-gnu.o
- test -f a.out-openmp-amdgcn-amd-amdhsa && \
- cp a.out-openmp-amdgcn-amd-amdhsa a.out-openmp-amdgcn-amd-amdhsa-${AOMP_GPU} || \
- cp a.out-openmp-amdgcn-amd-amdhsa-${AOMP_GPU} a.out-openmp-amdgcn-amd-amdhsa || \
cp a-${AOMP_GPU}.out-openmp-amdgcn-amd-amdhsa.out a.out-openmp-amdgcn-amd-amdhsa
+ test -f a.out-openmp-amdgcn-amd-amdhsa
DEVICE_LIB_PATH=$(DEVICE_LIB_PATH) $(AOMPHIP)/bin/hipcc -o hiplaunch.exe hiplaunch.cpp -fopenmp
#/opt/rocm/bin/hipcc -o hiplaunch.exe hiplaunch.c -fopenmp # this needs code-obj-v3 fix , ROCm 3.0 ???
# /work/hip-clang-bld/HIP/bin/hipcc -o hiplaunch.exe hiplaunch.c -fopenmp # this needs code-obj-v3 fix , ROCm 3.0 ???
@@ -76,4 +74,4 @@ run: $(TESTNAME).exe
# Cleanup anything this makefile can create
clean:
- rm -f *.bc *.i *.o *.s test_omp.lk test_omp.exe hiplaunch.exe a.out-*
+ rm -f *.bc *.i *.o *.s test_omp.lk test_omp.exe hiplaunch.exe a.out-* a-*.out
