Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler fix #97

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ __pycache__/
*.swo
*.txt
*.out
*.log

# Files for MacOS and IDEs
.DS_store
Expand Down Expand Up @@ -35,8 +36,12 @@ suitesparse-bench/
sam-outputs/
compiler/benchmark/

# Generated folder for SAM tiling
tiles/

# Generated SAM simulator tests
*/sim/test/apps/test_*.py
sam/sim/test/apps/
sam/sim/test/apps/test_*.py

*.gv

Expand All @@ -53,4 +58,8 @@ tmp_mat*/
tensor_*_mode_*

# Tensor files
tiles/
*.mtx
*.tns

# From instaling as pip package
sam.egg-info/
6 changes: 5 additions & 1 deletion compiler/sam-kernels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ GEN_KERNEL_NAMES=(
mat_residual
mat_elemadd3
tensor3_mttkrp
tensor3_mttkrp_unfused1
tensor3_mttkrp_unfused2
vec_spacc_simple
mat_spacc_simple
vec_sd_compression_WRONG
Expand Down Expand Up @@ -71,14 +73,16 @@ TACO_ARGS=(
"X(i,j,k)=B(i,j,k) -f=X:sss -f=B:sss"
"X(i,j,k)=B(i,j,k) -f=X:ddd -f=B:ddd"
"X(i,j,k)=B(i,j,k)+C(i,j,k) -f=X:sss -f=B:sss -f=C:sss"
"x=B(i,j,k)*C(i,j,k) -f=B:sss -f=C:sss"
"x=B(i,j,k)*C(i,j,k) -f=B:sss -f=C:sss -s=reorder(i,j,k)"
"X(i,j)=B(i,j,k)*c(k) -f=X:ss -f=B:sss -f=c:s"
"X(i,j,k)=B(i,j,l)*C(k,l) -f=X:sss -f=B:sss -f=C:ss"
"X(i,j)=B(i,j)*C(i,k)*D(k,j) -f=X:ss -f=B:ss -f=C:dd -f=D:dd:1,0 -s=reorder(i,j,k)"
"x(i)=b*C(j,i)*d(j)+e*f(i) -f=x:s -f=C:ss:1,0 -f=d:s -f=f:s"
"x(i)=b(i)-C(i,j)*d(j) -f=x:s -f=C:ss -f=b:s -f=d:s"
"X(i,j)=B(i,j)+C(i,j)+D(i,j) -f=X:ss -f=B:ss -f=C:ss -f=D:ss"
"X(i,j)=B(i,k,l)*C(j,k)*D(j,l) -f=X:ss -f=B:sss -f=C:ss -f=D:ss"
"T(j,k,l)=C(j,k)*D(j,l) -f=T:sss -f=C:ss -f=D:ss"
"X(i,j)=B(i,k,l)*T(j,k,l) -f=X:ss -f=B:sss -f=T:sss"
"x(j)=B(i,j) -f=x:s -f=B:ss"
"X(j,k)=B(i,j,k) -f=X:ss -f=B:sss"
"x(i)=b(i) -f=b:s -f=x:d"
Expand Down
2 changes: 1 addition & 1 deletion compiler/taco
Submodule taco updated from cf8f00 to 657033
Loading
Loading