Comments (5)
Decrease it by 1 maybe ?
for(int64_t i=0; i <= domain_size; ++i) {
for(int64_t j=0; j <= domain_size; ++j) {
out(i-1,j-1) = flx(i-2,j-1) - flx(i-1,j-1) + fly(i-1,j-2) - fly(i-1,j-1);
}
}
from antares.
Hi, does this work for you?
out[N, M] = (flx[N - 1, M] - flx[N, M] + fly[N, M - 1] - fly[N, M]).when([N >= 1, M >= 1], const(0, dtype=flx.dtype()), merge_op=`any`) where N in {domain_size}, M in {domain_size}
from antares.
Decrease it by 1 maybe ?
for(int64_t i=0; i <= domain_size; ++i) { for(int64_t j=0; j <= domain_size; ++j) { out(i-1,j-1) = flx(i-2,j-1) - flx(i-1,j-1) + fly(i-1,j-2) - fly(i-1,j-1); } }
It seems that out(i-1,j-1) is not legal in antares, it only allows form like this : out(i,j).
from antares.
Hi, does this work for you?
out[N, M] = (flx[N - 1, M] - flx[N, M] + fly[N, M - 1] - fly[N, M]).when([N >= 1, M >= 1], const(0, dtype=flx.dtype()), merge_op=`any`) where N in {domain_size}, M in {domain_size}
This can work, but will result in the calculation of redundancy. Is there any other way?
from antares.
Is out[N, 0] and out[0, M] not used by following operations? If they're useful, they are not regarded as redundant computation. If they are not useful, why don't you even remove those unsed space for that, making it:
out[N, M] = flx[N, M + 1] - flx[N + 1, M + 1] + fly[N + 1, M] - fly[N + 1, M + 1] where N in {domain_size - 1}, M in {domain_size - 1}
from antares.
Related Issues (20)
- Does ROCm for Windows ever exist? HOT 22
- Incorrect compute kernel from evaluator on WSL2 HOT 14
- Does one need access to the target HW? HOT 1
- Usage with Rocm windows for hip code compilation and documentation HOT 49
- gfx 1031 hip kernel crash HOT 1
- Running ROCm computations on Windows over AMD GPU HOT 14
- This repo is missing important files
- Change the cache directory HOT 4
- [BUG] Tune a bert-base-fp16 failed HOT 1
- [Help Request] How can Antares IR support stride size > 1 's Slice operation? HOT 3
- Can antares assign specified gpus for evaluation? HOT 1
- Benchmarks HOT 3
- is it possible c-ocl_*_win64 HOT 15
- Not an issue but a question due to lack of docs. HOT 1
- Fail to compile, when I use "AMDGFX=gfx1031 BACKEND=c-rocm_win64 antares" HOT 9
- The residue of the last issue (#365)
- [Error] error: ‘CHECK_EQ’ was not declared in this scope; did you mean ‘CHECK_OK’? HOT 17
- Assertion error: SDK for `c-rocm_win64` is not configured correctly, HOT 3
- Is this project based on AI? What is the goal of this project? HOT 3
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 antares.