Skip to content

Conversation

@horizon-blue
Copy link
Contributor

So that we can tune them on the fly...

Usage:

out_img = render_fmbs(
    scene,
    blender=blender,
    confidence=confidence_model,
    intr=intr,
    extr=extr,
    img=image,
    grid_size=dim3(16, 16),
    block_size=dim3(16, 16),
)

e.g. For 256x256 image on 5090 (the timing isn't really meaningful here other than showing that this works)

image

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Wno-deprecated-gpu-targets")
set(CMAKE_CUDA_FLAGS_RELEASE "${CMAKE_CUDA_FLAGS_RELEASE} -Xptxas -O3")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm adding the -Xptxas -O3 flag because in the past it's been giving me better performance... If you're running into build issue, you might need to clear out the build cache once (or also feel free to delete this)

@horizon-blue horizon-blue force-pushed the xiaoyan/launch-parameters branch from f6fc293 to 3ff5ed5 Compare December 9, 2025 07:32
@horizon-blue horizon-blue force-pushed the xiaoyan/launch-parameters branch from 3ff5ed5 to d146664 Compare December 9, 2025 07:46
@horizon-blue horizon-blue merged commit 3bee1ff into master Dec 9, 2025
1 check passed
@horizon-blue horizon-blue deleted the xiaoyan/launch-parameters branch December 9, 2025 19:34
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.

2 participants