MLIR: lib/ExecutionEngine/RunnerUtils.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

17 #include

18

19

20

22 std::cout << "Unranked Memref ";

24 std::cout << "\n";

25 }

26

27 extern "C" void

29 std::cout << "Unranked Memref ";

31 std::cout << "\n";

32 }

33

34 extern "C" void

36 std::cout << "Unranked Memref ";

38 std::cout << "\n";

39 }

40

42 std::cout << "Unranked Memref ";

44 std::cout << "\n";

45 }

46

47 extern "C" void

49 std::cout << "Unranked Memref ";

51 std::cout << "\n";

52 }

53

54 extern "C" void

56 std::cout << "Unranked Memref ";

58 std::cout << "\n";

59 }

60

61 extern "C" void

63 std::cout << "Unranked Memref ";

65 std::cout << "\n";

66 }

67

68 extern "C" void

70 std::cout << "Unranked Memref ";

72 std::cout << "\n";

73 }

74

78 }

79

82 }

83

86 }

87

90 }

91

94 }

95

98 }

99

102 }

103

106 }

107

110 }

111

112 extern "C" void

115 }

116

117 extern "C" void

120 }

121

122 extern "C" void

125 }

126

128 auto now = std::chrono::high_resolution_clock::now();

129 auto duration = now.time_since_epoch();

130 auto nanoseconds =

131 std::chrono::duration_caststd::chrono::nanoseconds(duration);

132 return nanoseconds.count();

133 }

134

138 }

139

143 }

144

148 }

149

153 }

154

155

156 static_assert(std::is_same<impl::index_type, uint64_t>::value,

157 "Expected index_type == uint64_t");

161 }

162

166 }

167

171 }

172

175 }

178 }

181 }

184 }

187 }

188

191 }

192

193 extern "C" void

196 }

197

198 extern "C" void

201 }

202

205 }

206

207 extern "C" void

210 }

211

212 extern "C" void

215 }

216

217 extern "C" void

220 }

221

222 extern "C" int64_t

226 }

227

228 extern "C" int64_t

232 }

233

234 extern "C" int64_t

238 }

239

240 extern "C" int64_t

244 }

245

246 extern "C" int64_t

250 }

251

252 extern "C" int64_t

256 }

257

258 extern "C" int64_t

262 }

263

264 extern "C" int64_t

268 }

269

270 extern "C" int64_t

274 }

275

276 extern "C" int64_t

280 }

281

282 extern "C" int64_t

286 }

287

289 void *expectedPtr) {

293 }

294

296 void *expectedPtr) {

300 }

301

303 void *expectedPtr) {

307 }

308

310 void *expectedPtr) {

314 }

315

317 void *expectedPtr) {

321 }

322

324 void *expectedPtr) {

328 }

329

330

int64_t _mlir_ciface_verifyMemRefC32(UnrankedMemRefType< impl::complex32 > *actual, UnrankedMemRefType< impl::complex32 > *expected)

void _mlir_ciface_printMemrefShapeI64(UnrankedMemRefType< int64_t > *M)

void _mlir_ciface_printMemref1dF32(StridedMemRefType< float, 1 > *M)

void printMemrefF64(int64_t rank, void *ptr)

int64_t _mlir_ciface_verifyMemRefF16(UnrankedMemRefType< f16 > *actual, UnrankedMemRefType< f16 > *expected)

void _mlir_ciface_printMemref1dI32(StridedMemRefType< int32_t, 1 > *M)

int64_t verifyMemRefC32(int64_t rank, void *actualPtr, void *expectedPtr)

int64_t _mlir_ciface_verifyMemRefBF16(UnrankedMemRefType< bf16 > *actual, UnrankedMemRefType< bf16 > *expected)

void _mlir_ciface_printMemref4dF32(StridedMemRefType< float, 4 > *M)

void _mlir_ciface_printMemref0dF32(StridedMemRefType< float, 0 > *M)

void _mlir_ciface_printMemrefF16(UnrankedMemRefType< f16 > *M)

int64_t verifyMemRefC64(int64_t rank, void *actualPtr, void *expectedPtr)

int64_t _mlir_ciface_verifyMemRefI32(UnrankedMemRefType< int32_t > *actual, UnrankedMemRefType< int32_t > *expected)

void _mlir_ciface_printMemrefC32(UnrankedMemRefType< impl::complex32 > *M)

void printMemrefInd(int64_t rank, void *ptr)

void _mlir_ciface_printMemrefF64(UnrankedMemRefType< double > *M)

void printMemrefC32(int64_t rank, void *ptr)

int64_t _mlir_ciface_nanoTime()

void printMemrefF32(int64_t rank, void *ptr)

int64_t _mlir_ciface_verifyMemRefF64(UnrankedMemRefType< double > *actual, UnrankedMemRefType< double > *expected)

void printMemrefI64(int64_t rank, void *ptr)

void _mlir_ciface_printMemref1dI8(StridedMemRefType< int8_t, 1 > *M)

void _mlir_ciface_printMemrefC64(UnrankedMemRefType< impl::complex64 > *M)

void _mlir_ciface_printMemrefBF16(UnrankedMemRefType< bf16 > *M)

int64_t _mlir_ciface_verifyMemRefC64(UnrankedMemRefType< impl::complex64 > *actual, UnrankedMemRefType< impl::complex64 > *expected)

void _mlir_ciface_printMemref1dI64(StridedMemRefType< int64_t, 1 > *M)

void _mlir_ciface_printMemrefShapeF32(UnrankedMemRefType< float > *M)

int64_t verifyMemRefF32(int64_t rank, void *actualPtr, void *expectedPtr)

int64_t _mlir_ciface_verifyMemRefI64(UnrankedMemRefType< int64_t > *actual, UnrankedMemRefType< int64_t > *expected)

void _mlir_ciface_printMemref1dC32(StridedMemRefType< impl::complex32, 1 > *M)

void _mlir_ciface_printMemrefShapeF64(UnrankedMemRefType< double > *M)

void _mlir_ciface_printMemref1dC64(StridedMemRefType< impl::complex64, 1 > *M)

void _mlir_ciface_printMemrefI8(UnrankedMemRefType< int8_t > *M)

void _mlir_ciface_printMemrefI32(UnrankedMemRefType< int32_t > *M)

void _mlir_ciface_printMemrefShapeI32(UnrankedMemRefType< int32_t > *M)

int64_t verifyMemRefF64(int64_t rank, void *actualPtr, void *expectedPtr)

void _mlir_ciface_printMemref1dInd(StridedMemRefType< impl::index_type, 1 > *M)

void _mlir_ciface_printMemrefI16(UnrankedMemRefType< int16_t > *M)

void _mlir_ciface_printMemrefInd(UnrankedMemRefType< impl::index_type > *M)

void _mlir_ciface_printMemrefShapeC64(UnrankedMemRefType< impl::complex64 > *M)

int64_t _mlir_ciface_verifyMemRefI16(UnrankedMemRefType< int16_t > *actual, UnrankedMemRefType< int16_t > *expected)

void _mlir_ciface_printMemrefShapeC32(UnrankedMemRefType< impl::complex32 > *M)

int64_t _mlir_ciface_verifyMemRefI8(UnrankedMemRefType< int8_t > *actual, UnrankedMemRefType< int8_t > *expected)

void _mlir_ciface_printMemref1dF64(StridedMemRefType< double, 1 > *M)

void _mlir_ciface_printMemrefShapeInd(UnrankedMemRefType< impl::index_type > *M)

void printMemrefI32(int64_t rank, void *ptr)

void _mlir_ciface_printMemrefF32(UnrankedMemRefType< float > *M)

int64_t _mlir_ciface_verifyMemRefF32(UnrankedMemRefType< float > *actual, UnrankedMemRefType< float > *expected)

void _mlir_ciface_printMemref2dF32(StridedMemRefType< float, 2 > *M)

int64_t _mlir_ciface_verifyMemRefInd(UnrankedMemRefType< impl::index_type > *actual, UnrankedMemRefType< impl::index_type > *expected)

void _mlir_ciface_printMemrefVector4x4xf32(StridedMemRefType< Vector2D< 4, 4, float >, 2 > *M)

void _mlir_ciface_printMemrefI64(UnrankedMemRefType< int64_t > *M)

int64_t verifyMemRefInd(int64_t rank, void *actualPtr, void *expectedPtr)

void _mlir_ciface_printMemref3dF32(StridedMemRefType< float, 3 > *M)

void _mlir_ciface_printMemrefShapeI8(UnrankedMemRefType< int8_t > *M)

int64_t verifyMemRefI32(int64_t rank, void *actualPtr, void *expectedPtr)

void printMemrefC64(int64_t rank, void *ptr)

void printMemRefMetaData(StreamType &os, const DynamicMemRefType< T > &v)

int64_t verifyMemRef(const DynamicMemRefType< T > &actual, const DynamicMemRefType< T > &expected)

Verify the equivalence of two dynamic memrefs and return the number of errors or -1 if the shape of t...

void printMemRef(const DynamicMemRefType< T > &m)

StridedMemRef descriptor type with static rank.