Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change scale_cuda to scale_npp #2851

Merged
merged 8 commits into from
Sep 21, 2023
Merged

Change scale_cuda to scale_npp #2851

merged 8 commits into from
Sep 21, 2023

Conversation

leszko
Copy link
Contributor

@leszko leszko commented Aug 31, 2023

Change ffmpeg installation to use CUDA SDK (needed to use the scale_npp filter).

It also removes tensorflow build, I believe we don't need it anymore.

Related work:

@leszko leszko marked this pull request as ready for review September 12, 2023 07:54
# Base CUDA Develop image which contains CUDA SDK libs for the following architectures: linux amd64, linux arm64, windows amd64
#
# To build this image you need the following steps:
# 1. Download NVIDIA CUDA SDK for ARM64, extract, and copy into cuda/arm64/usr/local/cuda/
Copy link
Member

Choose a reason for hiding this comment

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

you can use the ADD directive in Dockerfile. https://stackoverflow.com/a/52069435/1190388

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ohhh nice. I didn't know about it! I will leave it as it is right know and if at some point we decide to automate building cuda image, then I'll use this ADD + do cleanup of not needed files.

COPY cuda/arm64/usr/local/cuda/lib64/libnp* /usr/local/cuda_arm64/lib64/
COPY cuda/arm64/usr/local/cuda/include /usr/local/cuda_arm64/include

RUN ln -s /usr/local/cuda /usr/local/cuda_amd64
Copy link
Member

Choose a reason for hiding this comment

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

should we be building/pushing this regularly as well? or does it need to be manual? (could add a comment in the Dockerfile if it needs to be manual always

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'd keep this step manual because :

  1. We never change the cuda version, so we don't need to rebuild this image
  2. It'd be relatively difficult to automate, because of exe files

@codecov
Copy link

codecov bot commented Sep 20, 2023

Codecov Report

Merging #2851 (b4236fc) into master (25875a3) will decrease coverage by 0.00881%.
Report is 1 commits behind head on master.
The diff coverage is 0.00000%.

Impacted file tree graph

@@                 Coverage Diff                 @@
##              master       #2851         +/-   ##
===================================================
- Coverage   56.49462%   56.48581%   -0.00881%     
===================================================
  Files             88          88                 
  Lines          19239       19242          +3     
===================================================
  Hits           10869       10869                 
- Misses          7771        7774          +3     
  Partials         599         599                 
Files Changed Coverage Δ
cmd/livepeer/starter/starter.go 4.19948% <0.00000%> (-0.01105%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef3def3...b4236fc. Read the comment docs.

Files Changed Coverage Δ
cmd/livepeer/starter/starter.go 4.19948% <0.00000%> (-0.01105%) ⬇️

@leszko leszko force-pushed the rafal/scale-npp branch 2 times, most recently from 733bdfa to 80f0fe9 Compare September 21, 2023 09:31
Build seprate binaries for cpu and gpu

Build seprate binaries for cpu and gpu

Build seprate binaries for cpu and gpu

Test build only cpu-linux-arm

Test build only cpu-linux-arm

Test build only cpu-linux-arm

Test build only cpu-linux-arm

Test build only cpu-linux-arm

Test build only cpu-linux-arm

Build seprate binaries for cpu and gpu

Revert "Test build only cpu-linux-arm"

This reverts commit 99b3acf.

Set seperate build environment for CPU and GPU

Set seperate build environment for CPU and GPU
@leszko leszko merged commit ecc2839 into master Sep 21, 2023
19 checks passed
@leszko leszko deleted the rafal/scale-npp branch September 21, 2023 13:23
eliteprox pushed a commit to eliteprox/go-livepeer that referenced this pull request Feb 21, 2024
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.

None yet

3 participants