Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pystencils_autodiff
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
Model registry
Operate
Environments
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
pycodegen
pystencils_autodiff
Commits
7def7d13
Commit
7def7d13
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Make use of p_tqdm==1.3
parent
e457402d
No related branches found
No related tags found
No related merge requests found
Pipeline
#20784
failed
5 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+1
-1
1 addition, 1 deletion
setup.cfg
src/pystencils_autodiff/tensorflow_jit.py
+1
-2
1 addition, 2 deletions
src/pystencils_autodiff/tensorflow_jit.py
with
2 additions
and
3 deletions
setup.cfg
+
1
−
1
View file @
7def7d13
...
@@ -36,7 +36,7 @@ install_requires =
...
@@ -36,7 +36,7 @@ install_requires =
sympy>=0.5
# lower sympy version will have problems with a bug in floor when using interpolation
sympy>=0.5
# lower sympy version will have problems with a bug in floor when using interpolation
jinja2
jinja2
tqdm
tqdm
p_tqdm
# for parallel compilation in tensorflow_jit
p_tqdm
>=1.3
# for parallel compilation in tensorflow_jit
stringcase
# for converting to camelcase for tensorflow
stringcase
# for converting to camelcase for tensorflow
# The usage of test_requires is discouraged, see `Dependency Management` docs
# The usage of test_requires is discouraged, see `Dependency Management` docs
test_requires
=
test_requires
=
...
...
This diff is collapsed.
Click to expand it.
src/pystencils_autodiff/tensorflow_jit.py
+
1
−
2
View file @
7def7d13
...
@@ -198,7 +198,6 @@ def compile_sources_and_load(host_sources,
...
@@ -198,7 +198,6 @@ def compile_sources_and_load(host_sources,
object_files
=
[]
object_files
=
[]
sources
=
host_sources
+
cuda_sources
sources
=
host_sources
+
cuda_sources
print
(
'
Compiling Tensorflow module...
'
)
def
compile
(
source
):
def
compile
(
source
):
is_cuda
=
source
in
cuda_sources
is_cuda
=
source
in
cuda_sources
...
@@ -221,7 +220,7 @@ def compile_sources_and_load(host_sources,
...
@@ -221,7 +220,7 @@ def compile_sources_and_load(host_sources,
return
object_file
return
object_file
# p_tqdm is just a parallel tqdm
# p_tqdm is just a parallel tqdm
object_files
=
p_tqdm
.
p_umap
(
compile
,
sources
)
object_files
=
p_tqdm
.
p_umap
(
compile
,
sources
,
desc
=
'
Compiling Tensorflow module
'
)
print
(
'
Linking Tensorflow module...
'
)
print
(
'
Linking Tensorflow module...
'
)
module_file
=
link
(
object_files
,
module_file
=
link
(
object_files
,
...
...
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