Skip to content

CVDP Resources Server Fixes for commercial tooling support #1276

Open
arti4nvj wants to merge 5 commits intomainfrom
arti/cvdp_commercial_fix
Open

CVDP Resources Server Fixes for commercial tooling support #1276
arti4nvj wants to merge 5 commits intomainfrom
arti/cvdp_commercial_fix

Conversation

@arti4nvj
Copy link
Copy Markdown
Contributor

@arti4nvj arti4nvj commented May 8, 2026

Fixes to CVDP resources_server/cvdp/app.py to add infra support for running commercial tooling. Fixes a file-placement bug in the harness workspace. Default behavior is unchanged from upstream cvdp_benchmark; new functionality is opt-in via config.

Fix: preserve target paths when writing harness files. _run_harness previously rewrote every context/RTL file into workdir/rtl/, which broke harnesses with files outside rtl/ (e.g. verif/tb_foo.sv, docs/...). Files are now written at their declared relative path, matching cvdp_benchmark's repository.restore_files() semantics.

New config: harness_workspace_dir (default ""). Optional host directory used as the parent for per-rollout temp workdirs. Useful when the system TMPDIR is small (e.g. tmpfs on HPC). Defaults to system tmp when unset.

New config: container_tmp_bind_path (default ""). When set (e.g. /tmp), creates rundir/tmp on the host, binds it into the container at this path, and injects TMPDIR/TMP/TEMP/TEMPDIR/XCELIUM_TMPDIR/CDS_LOCK/JAVA_TOOL_OPTIONS=-Djava.io.tmpdir=.... Required for Cadence Xcelium EDA tools, which otherwise hit a read-only or undersized /tmp and crash. Unset = no extra bind/env, matches upstream.

New helper _build_runtime_tmp_env_args() builds the env-var flag list for the case above.

arti4nvj and others added 5 commits April 15, 2026 15:14
Signed-off-by: Arti Jain <artij@nvidia.com>
…. Default to '' instead of '/tmp' so extra host->container tmp bind and TMPDIR/XCELIUM_TMPDIR/CDS_LOCK/JAVA_TOOL_OPTIONS env injection only run when explicitly configured. Default behavior now matches upstream cvdp_benchmark (no extra mounts/env), while users hitting disk/permissions issues with default /tmp can opt in by setting the path. Also Gate rundir/tmp creation, --bind, and runtime tmp env vars on the config.

Signed-off-by: Arti Jain <artij@nvidia.com>
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented May 8, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@arti4nvj arti4nvj requested a review from cmunley1 May 8, 2026 22:55
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

Successfully merging this pull request may close these issues.

1 participant