-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Hi,
I got the error message below when I run my generator with Adams2019 auto-scheduler, it doesn't happen if I run my generator without any auto-scheduler. But I don't really understand what it tells me and what I should do:
Unhandled exception: Internal Error at /glnxa64/Halide/src/HexagonOptimize.cpp:105 triggered by user code at : Unsupported HVX type: float32x32
Below is my Halide Generator Class:
#include "Halide.h"
#include <stdio.h>
#include
using namespace Halide;
class mMatmul_matmul_out1_fcn_halide_generator : public Halide::Generator <mMatmul_matmul_out1_fcn_halide_generator> {
public:
Input<Buffer<float>> B1{"B1", 2};
Input<Buffer<float>> A1{"A1", 2};
Output<Buffer<float>> matmul_out1_fcn{"matmul_out1_fcn", 2};
void generate() {
RDom r(0, 100);
matmul_out1(d1, d2) = sum(A1(d1, r) * B1(r, d2));
matmul_out1_fcn(d1, d2) = matmul_out1(d1, d2);
}
void schedule() {
// Schedule is determined by autoscheduler. Need to set estimate on buffer
if(using_autoscheduler()) {
B1.dim(1).set_estimate(0, 100);
B1.dim(0).set_estimate(0, 100);
A1.dim(1).set_estimate(0, 100);
A1.dim(0).set_estimate(0, 100);
matmul_out1_fcn.set_estimate(d1, 0, 100).set_estimate(d2, 0, 100);
} else {
// Default schedule
}
}
private:
Var d1{"d1"};
Var d2{"d2"};
Func matmul_out1{"matmul_out1"};
};
HALIDE_REGISTER_GENERATOR(mMatmul_matmul_out1_fcn_halide_generator, mMatmul_matmul_out1_fcn_halide_gen)
Thank you!
Metadata
Metadata
Assignees
Labels
No labels