Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
read cuda driver deb in 1M chunk
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Oct 30, 2023
1 parent 2f741b0 commit 28dc2b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reactive/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ def install_cuda_drivers_repo(architecture, release, ubuntu):

with contextlib.closing(urlopen(repository_url)) as r:
with open(cuda_repository_package, "wb") as f:
f.write(r.read())
while chunk := r.read(1024 * 1024): # 1M chunks
f.write(chunk)

command = "dpkg -i {}".format(cuda_repository_package)
check_call(split(command))
Expand Down

0 comments on commit 28dc2b1

Please sign in to comment.