ryankert01 commented on code in PR #650:
URL: https://github.com/apache/mahout/pull/650#discussion_r2573027292
##########
qdp/docs/observability/NVTX_USAGE.md:
##########
@@ -0,0 +1,148 @@
+# NVTX Profiling Guide
+
+## Overview
+
+NVTX (NVIDIA Tools Extension) provides performance markers visible in Nsight
Systems. This project uses zero-cost macros that compile to no-ops when the
`observability` feature is disabled.
+
+## Build with NVTX
+
+Default builds exclude NVTX for zero overhead. Enable profiling with:
+
+```bash
+cd /mahout/qdp
Review Comment:
nits
```suggestion
cd mahout/qdp
```
##########
qdp/docs/observability/NVTX_USAGE.md:
##########
@@ -0,0 +1,148 @@
+# NVTX Profiling Guide
+
+## Overview
+
+NVTX (NVIDIA Tools Extension) provides performance markers visible in Nsight
Systems. This project uses zero-cost macros that compile to no-ops when the
`observability` feature is disabled.
+
+## Build with NVTX
+
+Default builds exclude NVTX for zero overhead. Enable profiling with:
+
+```bash
+cd /mahout/qdp
+cargo build -p qdp-core --example nvtx_profile --features observability
--release
Review Comment:
Don't know why, but I actually not compile successfully. Could you help me
out?
```sh
$ cargo build -p qdp-core --example nvtx_profile --features observability
--release
Updating crates.io index
Locking 1 package to latest compatible version
Adding nvtx v1.3.0
Compiling qdp-kernels v0.1.0 (/home/ryan/github/mahout/qdp/qdp-kernels)
Compiling nvtx v1.3.0
Compiling thiserror-impl v2.0.17
warning: [email protected]: <command-line>: fatal error: cuda_runtime.h: No
such file or directory
warning: [email protected]: compilation terminated.
error: failed to run custom build command for `qdp-kernels v0.1.0
(/home/ryan/github/mahout/qdp/qdp-kernels)`
Caused by:
process didn't exit successfully:
`/home/ryan/github/mahout/qdp/target/release/build/qdp-kernels-da755d9836d59230/build-script-build`
(exit status: 1)
--- stdout
cargo:rerun-if-changed=src/amplitude.cu
cargo:rustc-link-search=native=/usr/local/cuda/lib64
cargo:rustc-link-lib=cudart
OUT_DIR =
Some(/home/ryan/github/mahout/qdp/target/release/build/qdp-kernels-7e847e220dba984d/out)
OPT_LEVEL = Some(3)
TARGET = Some(x86_64-unknown-linux-gnu)
CARGO_ENCODED_RUSTFLAGS = Some()
HOST = Some(x86_64-unknown-linux-gnu)
cargo:rerun-if-env-changed=CXX_x86_64-unknown-linux-gnu
CXX_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=CXX_x86_64_unknown_linux_gnu
CXX_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_CXX
HOST_CXX = None
cargo:rerun-if-env-changed=CXX
CXX = Some(/home/ryan/miniconda3/bin/x86_64-conda-linux-gnu-c++)
RUSTC_WRAPPER = None
cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
cargo:rerun-if-env-changed=NVCC_x86_64-unknown-linux-gnu
NVCC_x86_64-unknown-linux-gnu = None
cargo:rerun-if-env-changed=NVCC_x86_64_unknown_linux_gnu
NVCC_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=HOST_NVCC
HOST_NVCC = None
cargo:rerun-if-env-changed=NVCC
NVCC = None
cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some(false)
CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2)
cargo:rerun-if-env-changed=CXXFLAGS
CXXFLAGS = Some(-fvisibility-inlines-hidden -std=c++17 -fmessage-length=0
-march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong
-fno-plt -O2 -ffunction-sections -pipe -isystem /home/ryan/miniconda3/include)
cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS
CC_SHELL_ESCAPED_FLAGS = None
cargo:rerun-if-env-changed=HOST_CXXFLAGS
HOST_CXXFLAGS = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64_unknown_linux_gnu
CXXFLAGS_x86_64_unknown_linux_gnu = None
cargo:rerun-if-env-changed=CXXFLAGS_x86_64-unknown-linux-gnu
CXXFLAGS_x86_64-unknown-linux-gnu = None
cargo:warning=<command-line>: fatal error: cuda_runtime.h: No such file or
directory
cargo:warning=compilation terminated.
--- stderr
error occurred in cc-rs: command did not execute successfully (status code
exit status: 1): LC_ALL="C" "nvcc"
"-ccbin=/home/ryan/miniconda3/bin/x86_64-conda-linux-gnu-c++" "-Xcompiler"
"-O3" "-Xcompiler" "-ffunction-sections" "-Xcompiler" "-fdata-sections"
"-Xcompiler" "-fPIC" "-m64" "-cudart=shared" "-std=c++17" "-gencode"
"arch=compute_80,code=sm_80" "-Xcompiler" "-fvisibility-inlines-hidden"
"-Xcompiler" "-std=c++17" "-Xcompiler" "-fmessage-length=0" "-Xcompiler"
"-march=nocona" "-Xcompiler" "-mtune=haswell" "-Xcompiler" "-ftree-vectorize"
"-Xcompiler" "-fPIC" "-Xcompiler" "-fstack-protector-strong" "-Xcompiler"
"-fno-plt" "-Xcompiler" "-O2" "-Xcompiler" "-ffunction-sections" "-Xcompiler"
"-pipe" "-Xcompiler" "-isystem" "-Xcompiler" "/home/ryan/miniconda3/include"
"-o"
"/home/ryan/github/mahout/qdp/target/release/build/qdp-kernels-7e847e220dba984d/out/ccaff89d6479c741-amplitude.o"
"-c" "src/amplitude.cu"
warning: build failed, waiting for other jobs to finish...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]