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
aa5f89f0
Commit
aa5f89f0
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Use pystencils compiler as torch host compiler
parent
22007af0
No related branches found
No related tags found
No related merge requests found
Pipeline
#20585
passed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils_autodiff/backends/astnodes.py
+2
-2
2 additions, 2 deletions
src/pystencils_autodiff/backends/astnodes.py
with
2 additions
and
2 deletions
src/pystencils_autodiff/backends/astnodes.py
+
2
−
2
View file @
aa5f89f0
...
...
@@ -14,7 +14,7 @@ from collections.abc import Iterable
from
os.path
import
dirname
,
exists
,
join
from
pystencils.astnodes
import
FieldPointerSymbol
,
FieldShapeSymbol
,
FieldStrideSymbol
from
pystencils.cpu.cpujit
import
get_cache_config
from
pystencils.cpu.cpujit
import
get_cache_config
,
get_compiler_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
from
pystencils_autodiff.backends.python_bindings
import
(
...
...
@@ -123,7 +123,7 @@ class TorchModule(JinjaCppFile):
[
file_name
],
with_cuda
=
self
.
is_cuda
,
extra_cflags
=
[
'
--std=c++14
'
],
extra_cuda_cflags
=
[
'
-std=c++14
'
],
extra_cuda_cflags
=
[
'
-std=c++14
'
,
'
--ccbin
'
,
get_compiler_config
()[
'
command
'
]
],
build_directory
=
build_dir
,
extra_include_paths
=
[
get_pycuda_include_path
(),
get_pystencils_include_path
()])
...
...
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