Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ebrains-spack-builds
Manage
Activity
Members
Labels
Plan
Issues
32
Issue boards
Milestones
Wiki
Code
Merge requests
35
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EBRAINS RI
Tech Hub
Platform
EBRAINS Software Distribution
ebrains-spack-builds
Commits
db576e85
Commit
db576e85
authored
1 year ago
by
Eric Müller
Browse files
Options
Downloads
Patches
Plain Diff
fix:
#58
parent
7551acf3
No related branches found
No related tags found
No related merge requests found
Pipeline
#53272
passed with stage
in 5 minutes and 27 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/hxtorch/include-SparseTensorUtils.patch
+17
-0
17 additions, 0 deletions
packages/hxtorch/include-SparseTensorUtils.patch
packages/hxtorch/package.py
+2
-0
2 additions, 0 deletions
packages/hxtorch/package.py
with
19 additions
and
0 deletions
packages/hxtorch/include-SparseTensorUtils.patch
0 → 100644
+
17
−
0
View file @
db576e85
diff --git a/src/hxtorch/spiking/types.cpp b/src/hxtorch/spiking/types.cpp
index aaf670f..39322c8 100644
--- a/src/hxtorch/spiking/types.cpp
+++ b/src/hxtorch/spiking/types.cpp
@@ -2,7 +2,12 @@
#include "grenade/vx/common/time.h"
#include "hxtorch/spiking/detail/to_dense.h"
#include <ATen/Functions.h>
+#if __has_include(<ATen/native/SparseTensorUtils.h>
+// moved in py-torch@2.1
+#include <ATen/native/SparseTensorUtils.h>
+#else
#include <ATen/SparseTensorUtils.h>
+#endif
#include <log4cxx/logger.h>
namespace hxtorch::spiking {
This diff is collapsed.
Click to expand it.
packages/hxtorch/package.py
+
2
−
0
View file @
db576e85
...
@@ -85,6 +85,8 @@ class Hxtorch(build_brainscales.BuildBrainscales):
...
@@ -85,6 +85,8 @@ class Hxtorch(build_brainscales.BuildBrainscales):
for
dep
,
dep_kw
in
deps_hxtorch_core
:
for
dep
,
dep_kw
in
deps_hxtorch_core
:
depends_on
(
dep
,
**
dep_kw
)
depends_on
(
dep
,
**
dep_kw
)
patch
(
"
include-SparseTensorUtils.patch
"
,
when
=
"
@:8.0-a5 ^py-torch@2.1:
"
)
extends
(
'
python
'
)
extends
(
'
python
'
)
def
install_test
(
self
):
def
install_test
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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