[pyfr] 76/88: Fixes for the MIC backend.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Nov 16 12:05:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository pyfr.
commit 62b2ddb59989492263dbb5c6d422e968ea5ef1bf
Author: Freddie Witherden <freddie at witherden.org>
Date: Fri Sep 2 11:54:51 2016 -0700
Fixes for the MIC backend.
---
pyfr/backends/mic/blasext.py | 2 +-
pyfr/backends/mic/kernels/axnpby.mako | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyfr/backends/mic/blasext.py b/pyfr/backends/mic/blasext.py
index e0aba5b..867a7e1 100644
--- a/pyfr/backends/mic/blasext.py
+++ b/pyfr/backends/mic/blasext.py
@@ -17,7 +17,7 @@ class MICBlasExtKernels(MICKernelProvider):
# Render the kernel template
src = self.backend.lookup.get_template('axnpby').render(
- subdims=subdims or range(ncola), nv=nv
+ subdims=subdims or range(ncola), ncola=ncola, nv=nv
)
# Build the kernel
diff --git a/pyfr/backends/mic/kernels/axnpby.mako b/pyfr/backends/mic/kernels/axnpby.mako
index 96f1211..0408487 100644
--- a/pyfr/backends/mic/kernels/axnpby.mako
+++ b/pyfr/backends/mic/kernels/axnpby.mako
@@ -20,7 +20,7 @@ axnpby(long *nrowp, long *ncolbp, long *ldimp,
int align = PYFR_ALIGN_BYTES / sizeof(fpdtype_t);
int rb, re, cb, ce, idx;
fpdtype_t axn;
- loop_sched_2d(nrow, ncolb, align, &rb, &re, &cb, &ce);
+ loop_sched_2d(*nrowp, *ncolbp, align, &rb, &re, &cb, &ce);
int nci = ((ce - cb) / SOA_SZ)*SOA_SZ;
for (int r = rb; r < re; r++)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pyfr.git
More information about the debian-science-commits
mailing list