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
9c9abdb1
Commit
9c9abdb1
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Change torch build folder to pystencils' cache_dir
parent
3fbfa910
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils_autodiff/backends/astnodes.py
+5
-3
5 additions, 3 deletions
src/pystencils_autodiff/backends/astnodes.py
with
5 additions
and
3 deletions
src/pystencils_autodiff/backends/astnodes.py
+
5
−
3
View file @
9c9abdb1
...
...
@@ -13,6 +13,7 @@ from collections.abc import Iterable
from
os.path
import
dirname
,
exists
,
join
from
pystencils.astnodes
import
FieldPointerSymbol
,
FieldShapeSymbol
,
FieldStrideSymbol
from
pystencils.cache
import
cache_dir
from
pystencils.cpu.cpujit
import
get_cache_config
from
pystencils.include
import
get_pycuda_include_path
,
get_pystencils_include_path
from
pystencils_autodiff._file_io
import
read_template_from_file
,
write_file
...
...
@@ -106,9 +107,10 @@ class TorchModule(JinjaCppFile):
torch_extension
=
load
(
hash
,
[
file_name
],
with_cuda
=
self
.
is_cuda
,
extra_cflags
=
'
--std=c++14
'
,
extra_include_paths
=
[
get_pycuda_include_path
(),
get_pystencils_include_path
()])
extra_cflags
=
[
'
--std=c++14
'
],
build_directory
=
join
(
cache_dir
,
'
object_cache
'
),
extra_include_paths
=
[
get_pycuda_include_path
(),
get_pystencils_include_path
()])
return
torch_extension
...
...
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