Comments (4)
@shoaibkamil located the crash occurs in test matrix_add/expr.storage/2
on line 2, because A1_ptr
is not initialized at that point:
1 #ifndef TACO_C_HEADERS
2 #define TACO_C_HEADERS
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <math.h>
6 #define TACO_MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))
7 #endif
8 int assemble(void** inputPack) {
9 void** A = &(inputPack[0]);
10 void** b = &(inputPack[4]);
11 void** c = &(inputPack[8]);
12 int* restrict A_L1_ptr = (int*)A[1];
13 int jb;
14 int b2_ptr;
15 int ib;
16 int b1_ptr;
17 int jc;
18 int A1_ptr;
19 int A2_ptr;
20 int c1_ptr;
21 int c2_ptr;
22 int* restrict b_L1_ptr = (int*)b[1];
23 int* restrict c_L1_ptr = (int*)c[1];
24 int* restrict b_L1_idx = (int*)b[2];
25 int* restrict c_L1_idx = (int*)c[2];
26 int j;
27 int* restrict A_L1_idx = (int*)A[2];
28 A2_ptr = A_L1_ptr[A1_ptr];
29 for (int ib = 0; ib < 3; ib += 1) {
30 b1_ptr = ((0 * 3) + ib);
31 c1_ptr = ((0 * 3) + ib);
32 A1_ptr = ((0 * 3) + ib);
from taco.
We should fix this issue by cleaning up the parts of lowering that deals with the result iterators.
from taco.
@Lugatod 635bb4d should fix this. Can you verify that this is indeed the case? I was unable to reproduce the original crash on my machine.
from taco.
Yes the bug is fixed
from taco.
Related Issues (20)
- pytaco.tensor_sum() gives a wrong answer
- Reshape HOT 1
- Complex number realization for the python interface HOT 1
- tests fail on macOS ppc/ppc64; on 10.6.8 x86_64 two tests fail HOT 15
- Is it possible to generate OpenCL kernels with TACO? HOT 6
- Memory leak with `pytaco`
- Failure due to CUDA errors when generating code for CPU?
- Online tool cannot connect to server
- convolution HOT 2
- Scheduling Language more information. HOT 1
- Building Taco failed HOT 1
- Using IndexSetVar defined at runtime
- Output transformed C++ kernel code from the TACO C++ source code HOT 1
- Incorrect code generated when contraction index is not innermost
- kernel seg fault when processing large tensors HOT 1
- Double Occurrence of Parameters in Kernels Generated with CLI tool.
- COO sparse tensor contraction produces missing & duplicated entries
- TACO does not run parallel HOT 1
- BLD: building in modern Python environments HOT 1
- Can not generate omp parallel code for sparse tensors HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from taco.