Skip to content

Use standard install destinations instead of ddprof/ prefix#518

Merged
r1viollet merged 3 commits into
mainfrom
r1viollet/fix/standard-install-destinations
Mar 20, 2026
Merged

Use standard install destinations instead of ddprof/ prefix#518
r1viollet merged 3 commits into
mainfrom
r1viollet/fix/standard-install-destinations

Conversation

@r1viollet

@r1viollet r1viollet commented Mar 19, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

Install rules used a ddprof/ prefix on all destinations (bin, lib, include), producing non-standard paths like <prefix>/ddprof/bin/ddprof. This forced every consumer (Conan, cmake --install) to relocate files manually.

Remove the prefix and let CMAKE_INSTALL_PREFIX control the layout. Update setup_env.sh to set the prefix to ../deliverables/ddprof so the release tarball structure stays the same.

Motivation

See original PR here.

Additional Notes

NA

How to test the change?

Requires downstream PR in ddprof-build.
Custom pipeline is here

Install rules used a `ddprof/` prefix on all destinations (bin, lib,
include), producing non-standard paths like `<prefix>/ddprof/bin/ddprof`.
This forced every consumer (Conan, cmake --install) to relocate files
manually.

Remove the prefix and let `CMAKE_INSTALL_PREFIX` control the layout.
Update `setup_env.sh` to set the prefix to `../deliverables/ddprof` so
the release tarball structure stays the same.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@r1viollet

Copy link
Copy Markdown
Collaborator Author

I am not sure why the build status is not taking into account the custom build pipeline 🤔

@pr-commenter

pr-commenter Bot commented Mar 19, 2026

Copy link
Copy Markdown

Benchmark results for collatz

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.23.0+f1638cda.103549242 ddprof 0.23.0+b7afdce5.103714087

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-collatz --preset cpu_only collatz_runner.sh same

@pr-commenter

pr-commenter Bot commented Mar 19, 2026

Copy link
Copy Markdown

Benchmark results for BadBoggleSolver_run

Parameters

Baseline Candidate
config baseline candidate
profiler-version ddprof 0.23.0+f1638cda.103549242 ddprof 0.23.0+b7afdce5.103714087

Summary

Found 0 performance improvements and 0 performance regressions! Performance is the same for 1 metrics, 0 unstable metrics.

See unchanged results
scenario Δ mean execution_time
scenario:ddprof -S bench-bad-boggle-solver BadBoggleSolver_run work 1000 same

Allow collatz to be installed to a separate prefix from CMAKE_INSTALL_PREFIX.
When COLLATZ_INSTALL_PREFIX is unset, behavior is unchanged. When set,
collatz installs under that path instead, keeping collatz/ and ddprof/
as siblings in the release layout regardless of CMAKE_INSTALL_PREFIX.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@r1viollet
r1viollet marked this pull request as ready for review March 20, 2026 10:03
@r1viollet
r1viollet requested a review from nsavoire as a code owner March 20, 2026 10:03
install(TARGETS collatz-profiling-static DESTINATION collatz)
set(COLLATZ_INSTALL_PREFIX
""
CACHE PATH "Override install prefix for collatz (defaults to CMAKE_INSTALL_PREFIX)")

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this adds some complexity (to avoid having collatz in the same folder...) but it should not bother us too often

nsavoire
nsavoire previously approved these changes Mar 20, 2026
- COLLATZ_INSTALL_PREFIX is now the install root (not its parent);
  callers set the full path including the collatz/ dir, consistent
  with how CMAKE_INSTALL_PREFIX works for ddprof
- Add COLLATZ_INSTALL_PREFIX to setup_env.sh (../deliverables/collatz)
- Fix version.txt DESTINATION from "." to "" to avoid the cosmetic ./
  prefix in cmake install output

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@r1viollet
r1viollet force-pushed the r1viollet/fix/standard-install-destinations branch from dc8f258 to b7afdce Compare March 20, 2026 13:08
@r1viollet
r1viollet merged commit 77955e2 into main Mar 20, 2026
2 of 3 checks passed
@r1viollet
r1viollet deleted the r1viollet/fix/standard-install-destinations branch March 20, 2026 13:40
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.

3 participants