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
865d2274
Commit
865d2274
authored
5 years ago
by
Stephan Seitz
Browse files
Options
Downloads
Patches
Plain Diff
Add get_cubic_interpolation_include_paths
parent
9d500fb9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pystencils_autodiff/backends/astnodes.py
+6
-1
6 additions, 1 deletion
src/pystencils_autodiff/backends/astnodes.py
with
6 additions
and
1 deletion
src/pystencils_autodiff/backends/astnodes.py
+
6
−
1
View file @
865d2274
...
@@ -13,9 +13,9 @@ import sys
...
@@ -13,9 +13,9 @@ import sys
from
collections.abc
import
Iterable
from
collections.abc
import
Iterable
from
os.path
import
dirname
,
exists
,
join
from
os.path
import
dirname
,
exists
,
join
import
pystencils
from
pystencils.astnodes
import
FieldPointerSymbol
,
FieldShapeSymbol
,
FieldStrideSymbol
from
pystencils.astnodes
import
FieldPointerSymbol
,
FieldShapeSymbol
,
FieldStrideSymbol
from
pystencils.cpu.cpujit
import
get_cache_config
,
get_compiler_config
from
pystencils.cpu.cpujit
import
get_cache_config
,
get_compiler_config
from
pystencils.gpucuda.cudajit
import
get_cubic_interpolation_include_paths
from
pystencils.include
import
get_pycuda_include_path
,
get_pystencils_include_path
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._file_io
import
read_template_from_file
,
write_file
from
pystencils_autodiff.backends.python_bindings
import
(
from
pystencils_autodiff.backends.python_bindings
import
(
...
@@ -26,6 +26,11 @@ from pystencils_autodiff.framework_integration.astnodes import (
...
@@ -26,6 +26,11 @@ from pystencils_autodiff.framework_integration.astnodes import (
from
pystencils_autodiff.tensorflow_jit
import
_hash
from
pystencils_autodiff.tensorflow_jit
import
_hash
def
get_cubic_interpolation_include_paths
():
return
[
join
(
dirname
(
pystencils
.
gpucuda
.
__file__
),
'
CubicInterpolationCUDA
'
,
'
code
'
),
join
(
dirname
(
pystencils
.
gpucuda
.
__file__
),
'
CubicInterpolationCUDA
'
,
'
code
'
,
'
internal
'
)]
class
TorchTensorDestructuring
(
DestructuringBindingsForFieldClass
):
class
TorchTensorDestructuring
(
DestructuringBindingsForFieldClass
):
CLASS_TO_MEMBER_DICT
=
{
CLASS_TO_MEMBER_DICT
=
{
FieldPointerSymbol
:
"
data_ptr<{dtype}>()
"
,
FieldPointerSymbol
:
"
data_ptr<{dtype}>()
"
,
...
...
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