Skip to content
Snippets Groups Projects
Commit 729c8bab authored by Eric Müller's avatar Eric Müller :mountain_bicyclist: Committed by Eleni Mathioulaki
Browse files

fix: build {hxtorch,jaxsnn} on py-torch@2.1: [DO-NOT-MERGE]

This is for testing, if it works, we should get this upstream and it
will change the version/tag.
parent 0cf87da3
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ class Hxtorch(build_brainscales.BuildBrainscales):
version('7.0-rc1-fixup2', tag='hxtorch-7.0-rc1-fixup2')
version('7.0-rc1-fixup1', branch='waf')
patch("remove-superfluous-pytorch-include.patch", when="^py-torch@2.1:")
deps_hxtorch_core = [
# compiler for the BrainScaleS-2 embedded processor ("PPU"); needed for
# building/linking, at runtime and for testing
......
diff --git a/hxtorch/src/hxtorch/spiking/types.cpp b/hxtorch/src/hxtorch/spiking/types.cpp
index aaf670f..0e7df7d 100644
--- a/hxtorch/src/hxtorch/spiking/types.cpp
+++ b/hxtorch/src/hxtorch/spiking/types.cpp
@@ -2,7 +2,6 @@
#include "grenade/vx/common/time.h"
#include "hxtorch/spiking/detail/to_dense.h"
#include <ATen/Functions.h>
-#include <ATen/SparseTensorUtils.h>
#include <log4cxx/logger.h>
namespace hxtorch::spiking {
......@@ -32,6 +32,8 @@ class Jaxsnn(build_brainscales.BuildBrainscales):
version('8.0-a2', tag='jaxsnn-8.0-a2')
version('8.0-a1', tag='jaxsnn-8.0-a1')
patch("remove-superfluous-pytorch-include.patch", when="^py-torch@2.1:")
# dependencies inherited from hxtorch.core
for dep, dep_kw in hxtorch.Hxtorch.deps_hxtorch_core:
depends_on(dep, **dep_kw)
......
diff --git a/hxtorch/src/hxtorch/spiking/types.cpp b/hxtorch/src/hxtorch/spiking/types.cpp
index aaf670f..0e7df7d 100644
--- a/hxtorch/src/hxtorch/spiking/types.cpp
+++ b/hxtorch/src/hxtorch/spiking/types.cpp
@@ -2,7 +2,6 @@
#include "grenade/vx/common/time.h"
#include "hxtorch/spiking/detail/to_dense.h"
#include <ATen/Functions.h>
-#include <ATen/SparseTensorUtils.h>
#include <log4cxx/logger.h>
namespace hxtorch::spiking {
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment