Skip to content

Commit b663a61

Browse files
CedricJourvkarak
authored andcommitted
Correction of the ROCM path following a change in rocm hierarchy
1 parent a71c68b commit b663a61

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

hpctestlib/microbenchmarks/gpu/dgemm/src/makefile.hip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ RSMI_ROOT?=/opt/rocm/rocm_smi
44
all: dgemm sgemm
55

66
dgemm:
7-
hipcc -O3 xgemm.cu -o $@.x -DTARGET_HIP -DGEMM_TYPE=double -DXBLAS_GEMM=XblasDgemm ${CXXFLAGS} -std=c++14 -I${ROCM_ROOT} -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas
7+
hipcc -O3 xgemm.cu -o $@.x -DTARGET_HIP -DGEMM_TYPE=double -DXBLAS_GEMM=XblasDgemm ${CXXFLAGS} -std=c++14 -I${ROCM_ROOT}/include/rocblas/ -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas -lpthread
88

99
sgemm:
10-
hipcc -O3 xgemm.cu -o $@.x -DTARGET_HIP -DGEMM_TYPE=float -DXBLAS_GEMM=XblasSgemm ${CXXFLAGS} -std=c++14 -I${ROCM_ROOT} -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas
10+
hipcc -O3 xgemm.cu -o $@.x -DTARGET_HIP -DGEMM_TYPE=float -DXBLAS_GEMM=XblasSgemm ${CXXFLAGS} -std=c++14 -I${ROCM_ROOT}/include/rocblas/ -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas -lpthread

hpctestlib/microbenchmarks/gpu/src/common/Xdevice/hip/smi.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void Smi::setCpuAffinity(int id)
3333
{
3434
checkGpuIdIsSensible(id);
3535

36-
uint32_t numa_node;
36+
int32_t numa_node;
3737
rsmiCheck( rsmi_topo_numa_affinity_get( id, &numa_node) );
3838
numa_run_on_node(numa_node);
3939
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
RSMI_ROOT?=/opt/rocm/rocm_smi
2+
ROCM_ROOT?=/opt/rocm/
23

34
gpu_burn:
4-
hipcc -O3 $@.cu -o $@.x -DTARGET_HIP ${CXXFLAGS} -std=c++14 -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas -pthreads
5+
hipcc -O3 $@.cu -o $@.x -DTARGET_HIP ${CXXFLAGS} -std=c++14 -I${ROCM_ROOT}/include/rocblas/ -I${RSMI_ROOT}/include -lnuma -lrocm_smi64 -lrocblas -pthreads

0 commit comments

Comments
 (0)