Skip to content

Commit

Permalink
Merge pull request #293 from dbarry9/2024.12.11_intel-gpu-threads
Browse files Browse the repository at this point in the history
2024.12.11 intel gpu threads
  • Loading branch information
dbarry9 authored Dec 19, 2024
2 parents 87fd77f + 2f265ef commit e378989
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/intel_gpu/Rules.intel_gpu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GPUOBJS = GPUMetricInterface.o GPUMetricHandler.o linux_intel_gpu_metrics.o
COMPOBJS += $(GPUOBJS)

CFLAGS += $(LDL) -g -DDEBUG -I$(GPU_INTERNAL) -I$(GPU_INTERNAL)/inc -D_GLIBCXX_USE_CXX11_ABI=1
LDFLAGS += -g -lstdc++ -ldl
LDFLAGS += -ldl

GPUMetricInterface.o: $(GPU_INTERNAL)/src/GPUMetricInterface.cpp $(GPUHEADER)
$(CXX) -g -fpic $(CFLAGS) $(CPPFLAGS) -I$(GPU_INTERNAL)/inc -I$(INTEL_L0_HEADERS) -o GPUMetricInterface.o -c $(GPU_INTERNAL)/src/GPUMetricInterface.cpp
Expand All @@ -24,6 +24,6 @@ GPUMetricHandler.o: $(GPU_INTERNAL)/src/GPUMetricHandler.cpp $(GPUHEADER) $(GPU
$(CXX) -g -fpic $(CFLAGS) $(CPPFLAGS) -I$(GPU_INTERNAL)/inc -I$(INTEL_L0_HEADERS) -o GPUMetricHandler.o -c $(GPU_INTERNAL)/src/GPUMetricHandler.cpp

linux_intel_gpu_metrics.o: $(GPUCOMP)/linux_intel_gpu_metrics.c $(GPUHEADER)
$(CC) $(LIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS) -g -o linux_intel_gpu_metrics.o -c $(GPUCOMP)/linux_intel_gpu_metrics.c $(LDFLAG)
$(CC) $(LIBCFLAGS) $(CFLAGS) $(CPPFLAGS) $(OPTFLAGS) -g -o linux_intel_gpu_metrics.o -c $(GPUCOMP)/linux_intel_gpu_metrics.c $(LDFLAGS)

##clean:
2 changes: 1 addition & 1 deletion src/components/intel_gpu/tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CFLAGS += -DDEBUG -I../../../testlib

INTEL_L0_HEADERS ?=/usr/include
INTEL_L0_LIB64 ?=/usr/lib
CPPLDFLAGS+=-lstdc++ -ldl
CPPLDFLAGS+=-ldl
GPULIB=-L$(INTEL_L0_LIB64) -lze_loader

%.o:%.c
Expand Down
2 changes: 1 addition & 1 deletion src/configure
Original file line number Diff line number Diff line change
Expand Up @@ -6974,7 +6974,7 @@ for comp in $components; do
# check for intel_gpu or rocp_sdk component to determine if we need -lstdc++ in LDFLAGS
if (test "x$comp" = "xintel_gpu" || test "x$comp" = "xrocp_sdk"); then
LDFLAGS="$LDFLAGS -lstdc++"
LDFLAGS="$LDFLAGS -lstdc++ -pthread"
fi
if test "x$comp" = "xsysdetect" ; then
Expand Down
2 changes: 1 addition & 1 deletion src/configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -1965,7 +1965,7 @@ for comp in $components; do

# check for intel_gpu or rocp_sdk component to determine if we need -lstdc++ in LDFLAGS
if (test "x$comp" = "xintel_gpu" || test "x$comp" = "xrocp_sdk"); then
LDFLAGS="$LDFLAGS -lstdc++"
LDFLAGS="$LDFLAGS -lstdc++ -pthread"
fi

if test "x$comp" = "xsysdetect" ; then
Expand Down

0 comments on commit e378989

Please sign in to comment.