Skip to content

Commit c9a48bf

Browse files
committed
Fix ROCm compilation of standalone LST
1 parent a7f99cf commit c9a48bf

File tree

1 file changed

+2
-2
lines changed
  • RecoTracker/LSTCore/standalone/LST

1 file changed

+2
-2
lines changed

RecoTracker/LSTCore/standalone/LST/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ GENCODE_CUDA := -gencode arch=compute_70,code=[sm_70,compute_70] -gencode arch=c
4646
CXX = g++
4747
CXXFLAGS_CPU = -march=native -mtune=native -Ofast -fno-reciprocal-math -fopenmp-simd -g -Wall -Woverloaded-virtual -fPIC -fopenmp -I..
4848
CXXFLAGS_CUDA = -O3 -g --compiler-options -Wall --compiler-options -Woverloaded-virtual --compiler-options -fPIC --compiler-options -fopenmp -dc -lineinfo --ptxas-options=-v --cudart shared $(GENCODE_CUDA) --use_fast_math --default-stream per-thread -I..
49-
CXXFLAGS_ROCM = -O3 -g -Wall -Woverloaded-virtual -fPIC -I${ROCM_ROOT}/include -I..
49+
CXXFLAGS_ROCM = -O3 -g -Wall -Woverloaded-virtual -fPIC -isystem ${ROCM_ROOT}/include -I..
5050
CMSSWINCLUDE := -I${TRACKLOOPERDIR}/../../../ -I${CMSSW_BASE}/src -I${FMT_ROOT}/include
5151
ifdef CMSSW_RELEASE_BASE
5252
CMSSWINCLUDE := ${CMSSWINCLUDE} -I${CMSSW_RELEASE_BASE}/src
@@ -81,7 +81,7 @@ ALPAKABACKEND_CUDA = $(ALPAKACUDA)
8181
COMPILE_CMD_CUDA = $(LD_CUDA) -x cu
8282

8383
LD_ROCM = hipcc
84-
SOFLAGS_ROCM = -g -shared -fPIC
84+
SOFLAGS_ROCM = -g -shared -fPIC -L${ROCM_ROOT}/lib
8585
ALPAKABACKEND_ROCM = $(ALPAKAROCM)
8686
COMPILE_CMD_ROCM = $(LD_ROCM) -c
8787

0 commit comments

Comments
 (0)