diff --git a/cuda/lab1/Makefile b/cuda/lab1/Makefile index ef0f653..bc2cdd0 100644 --- a/cuda/lab1/Makefile +++ b/cuda/lab1/Makefile @@ -47,7 +47,7 @@ run: $(EXE) ./$(EXE) profile: $(EXE) - sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} nvprof ./$(EXE) + sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} $(CUDA_HOME)/bin/nvprof ./$(EXE) clean: -rm -fr $(BUILD_DIR) *.exe *.out *~ diff --git a/cuda/lab2/Makefile b/cuda/lab2/Makefile index 1ea0cc4..87b10ee 100644 --- a/cuda/lab2/Makefile +++ b/cuda/lab2/Makefile @@ -47,7 +47,7 @@ run: $(EXE) ./$(EXE) profile: $(EXE) - sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} nvprof ./$(EXE) + sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} $(CUDA_HOME)/bin/nvprof ./$(EXE) clean: -rm -fr $(BUILD_DIR) *.exe *.out *~ diff --git a/cuda/lab3/Makefile b/cuda/lab3/Makefile index 40472ee..7ab0a49 100755 --- a/cuda/lab3/Makefile +++ b/cuda/lab3/Makefile @@ -47,10 +47,10 @@ run: $(EXE) ./$(EXE) profile: $(EXE) - sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} nvprof --unified-memory-profiling off ./$(EXE) + sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} $(CUDA_HOME)/bin/nvprof --unified-memory-profiling off ./$(EXE) metrics: $(EXE) - sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} nvprof --print-gpu-trace --metrics "eligible_warps_per_cycle,achieved_occupancy,sm_efficiency,ipc" ./$(EXE) + sudo LD_LIBRARY_PATH=$(CUDA_HOME)/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} $(CUDA_HOME)/bin/nvprof --print-gpu-trace --metrics "eligible_warps_per_cycle,achieved_occupancy,sm_efficiency,ipc" ./$(EXE) clean: -rm -fr $(BUILD_DIR) *.exe *.out *~ diff --git a/openmp/lab3/Makefile b/openmp/lab3/Makefile index d8f47d7..e541896 100644 --- a/openmp/lab3/Makefile +++ b/openmp/lab3/Makefile @@ -25,7 +25,7 @@ run: $(EXE) ./$(EXE) $(EXT_ARGS) profile: $(EXE) - sudo LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} nvprof ./$(EXE) $(EXT_ARGS) + sudo LD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/ext/lib:${LD_LIBRARY_PATH} LIBRARY_PATH=/usr/ext/lib:${LIBRARY_PATH} /usr/local/cuda/bin/nvprof ./$(EXE) $(EXT_ARGS) clean: rm -f $(OBJS) *.o *.exe *.out *~