You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I use your cutt to do transpose, but I have encountered a problem---'Illegal instruction (core dumped)'. My code is
`int main() {
// Four dimensional tensor
// Transpose (31, 549, 2, 3) -> (3, 31, 2, 549)
int dim[4] = {31, 549, 2, 3};
int permutation[4] = {3, 0, 2, 1};
int size = 1;
for (int i = 0; i < sizeof(permutation) / sizeof(permutation[0]); i++)
{
size = dim[i]*size;
}
double *idata = new double[size]();
double *odata = new double[size];
// Option 1: Create plan on NULL stream and choose implementation based on heuristics
cuttHandle plan;
cuttCheck(cuttPlan(&plan, 4, dim, permutation, sizeof(double), 0));
// Option 2: Create plan on NULL stream and choose implementation based on performance measurements
// cuttCheck(cuttPlanMeasure(&plan, 4, dim, permutation, sizeof(double), 0, idata, odata));
// Execute plan
cuttCheck(cuttExecute(plan, idata, odata));
cout << odata << endl;
// Destroy plan
cuttCheck(cuttDestroy(plan));
delete[](idata);
delete[](odata);
return 0;
}`
Then , I use gdb and I find the problem happens on cuttCheck(cuttPlan(&plan, 4, dim, permutation, sizeof(double), 0));
I run the cutt_test and the same problem happens.
Thanks.
The text was updated successfully, but these errors were encountered:
Make sure you are building it for the right CPU architecture, especially if the platform you are building on has cross-compilation (many Cray platforms).
Hello, I use your cutt to do transpose, but I have encountered a problem---'Illegal instruction (core dumped)'. My code is
`int main() {
}`
Then , I use gdb and I find the problem happens on
cuttCheck(cuttPlan(&plan, 4, dim, permutation, sizeof(double), 0));
I run the cutt_test and the same problem happens.
Thanks.
The text was updated successfully, but these errors were encountered: