Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is my GPU utilization at 0 even though my stdpar feature is supposed to be using the GPU? #1456

Open
Ehu1 opened this issue Dec 23, 2024 · 1 comment

Comments

@Ehu1
Copy link

Ehu1 commented Dec 23, 2024

I am using nvc++ to compile the LULESH benchmark, and from the memory usage, it appears that my benchmark is utilizing the GPU. However, the GPU utilization is showing as 0%.

Image

nvc++ --version

nvc++ 24.9-0 64-bit target on x86-64 Linux -tp sapphirerapids 
NVIDIA Compilers and Tools
Copyright (c) 2024, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.
 cat Makefile 
# Build with nvc++, with parallel algorithm support turned on.

SHELL = /bin/sh
.SUFFIXES: .cc .o

LULESH_EXEC = lulesh2.0

CXX = nvc++

SOURCES2.0 = \
        lulesh.cc \
        lulesh-comm.cc \
        lulesh-viz.cc \
        lulesh-util.cc \
        lulesh-init.cc
OBJECTS2.0 = $(SOURCES2.0:.cc=.o)

CXXFLAGS = -w -fast -Mnouniform -Mfprelaxed -stdpar=gpu -std=c++11 -DUSE_MPI=0
LDFLAGS = $(CXXFLAGS) 

%.o: ../src/%.cc ../src/lulesh.h
        @echo "Building $<"
        $(CXX) -c $(CXXFLAGS) -o $@  $<

all: $(LULESH_EXEC)

$(LULESH_EXEC): $(OBJECTS2.0)
        @echo "Linking"
        $(CXX) $(OBJECTS2.0) $(LDFLAGS) -lm -o $@

run: $(LULESH_EXEC)
        ./lulesh2.0 -p -s 150

clean:
        /bin/rm -f *.o *~ $(OBJECTS) $(LULESH_EXEC)
        /bin/rm -rf *.dSYM
@ericniebler
Copy link
Collaborator

Which execution context are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants