Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tf-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benedikt Wildenhain
tf-build
Commits
fe0c98d8
Commit
fe0c98d8
authored
1 year ago
by
Chandra Devarakonda
Browse files
Options
Downloads
Patches
Plain Diff
Minor fix in the packages
parent
6ba2ba63
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tensorflow_runtime_dockerfiles/tpu.Dockerfile
+2
-11
2 additions, 11 deletions
tensorflow_runtime_dockerfiles/tpu.Dockerfile
with
2 additions
and
11 deletions
tensorflow_runtime_dockerfiles/tpu.Dockerfile
+
2
−
11
View file @
fe0c98d8
...
...
@@ -19,9 +19,9 @@ ENV LANG C.UTF-8
COPY
setup.sources.sh /setup.sources.sh
COPY
setup.packages.sh /setup.packages.sh
COPY
c
pu.packages.txt /
c
pu.packages.txt
COPY
t
pu.packages.txt /
t
pu.packages.txt
RUN
/setup.sources.sh
RUN
/setup.packages.sh /
c
pu.packages.txt
RUN
/setup.packages.sh /
t
pu.packages.txt
ARG
PYTHON_VERSION=python3.11
...
...
@@ -30,15 +30,6 @@ COPY setup.python.sh /setup.python.sh
COPY
cpu.requirements.txt /tpu.requirements.txt
RUN
/setup.python.sh
$PYTHON_VERSION
/tpu.requirements.txt
RUN
pip
install
--no-cache-dir
${
TENSORFLOW_PACKAGE
}
-f
https://storage.googleapis.com/libtpu-tf-releases/index.html
ENV
NEXT_PLUGGABLE_DEVICE_USE_C_API=true
ENV
TF_PLUGGABLE_DEVICE_LIBRARY_PATH="" # Initialize
# Dynamically determine libtpu installation path
RUN
python
-c
"import libtpu; import os; print(os.path.join(os.path.dirname(libtpu.__file__), 'libtpu.so'))"
\
|
tee
/out/.libtpu_path
# Capture the output
# Set the environment variable
ENV
TF_PLUGGABLE_DEVICE_LIBRARY_PATH=$(cat /out/.libtpu_path)
COPY
bashrc /etc/bash.bashrc
RUN
chmod
a+rwx /etc/bash.bashrc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment