We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2e73170 + 9954502 commit 4461ad8Copy full SHA for 4461ad8
pygpu/basic.py
@@ -6,7 +6,7 @@ def _generate_kernel(ctx, cols, upper=True):
6
tmpl = Template("""
7
#include "cluda.h"
8
KERNEL void extract_tri(GLOBAL_MEM ga_float *a, ga_size a_off, ga_uint N) {
9
- a = (GLOBAL_MEM ga_float *)(((char *)a) + a_off);
+ a = (GLOBAL_MEM ga_float *)(((GLOBAL_MEM char *)a) + a_off);
10
unsigned int idx = GID_1 * LDIM_0 * GDIM_0 +
11
GID_0 * LDIM_0 + LID_0;
12
unsigned int ix = idx/${cols};
0 commit comments