Comments (4)
It seems this is not an Allo bug, but the misusage of the schedule primitivies. There are two problems here:
- Since you have already split the
j
loop, there is noj
loop when you call thebuffer_at
function, but onlyj.outer
andj.inner
. - There is no need to create an intermediate buffer for
force_x
asforce_x
is already outside thej
loop.
Please let us know if you need further guidance on optimizing this kernel.
from allo.
We should print out proper error messages instead of letting the compiler crash.
from allo.
We have already printed out the error message in this case:
File "/Users/rhodama/CORNELL/Design_project/bin_sp24/allo/allo/ir/transform.py", line 104, in find_loop_in_bands
raise RuntimeError(f"Cannot find the band of loop {axis_name}")
RuntimeError: Cannot find the band of loop j in "kernel_md"
We can further provide a list of available loop axes for users to choose from, but we cannot instruct users where to insert the buffers as it may need additional analysis (which is costly).
from allo.
Let's keep this issue open for now. I have some suggestions on the error messaging mechanism.
from allo.
Related Issues (20)
- [BUG] `opt-level` setting segfaults
- [BUG]Unused memory allocation when not enable_tensor HOT 1
- [BUG]FFN memory usage not optmized due to difficulty of fusing linalg ops
- [BUG] Relu allocates extra memory for storing broadcasted zero tensor
- [BUG] Builder doesn't build scf for loop when both loop bounds are expressions
- [BUG] FIFO read in loop attempts to access repeated data HOT 1
- [BUG] Tuple not supported in dataflow analysis
- [BUG] For loop does not run when given int param from function HOT 1
- [BUG] Excessive Copy Loops HOT 5
- [BUG] Loop carried dependences should be SSA values not memory operations HOT 4
- [BUG] Installation Issue HOT 1
- [Feature] Use wraparound math for intermediate vals when desired
- [Feature] Rewind memory access loops HOT 1
- [Feature] Comment block support HOT 4
- [Feature] Allow list of AlloType as dtype for Structure
- [BUG] KeyError: 'attempt to access a non-existent attribute'
- [BUG] `arith.fptoui` issue with negative loop bound
- [BUG] Vitis HLS backend results not written back to argument
- [BUG] Cannot find target loop at schedule composition
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 allo.