[Mlir-commits] [mlir] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)
Yinying Li
llvmlistbot at llvm.org
Tue Jan 9 12:28:44 PST 2024
================
@@ -176,6 +177,14 @@ extern "C" void rtdrand(void *g) {
delete generator;
}
+extern "C" void _mlir_ciface_shuffle(StridedMemRefType<uint64_t, 1> *mref,
+ void *g) {
+ std::mt19937 *generator = static_cast<std::mt19937 *>(g);
+ uint64_t s = mref->sizes[0];
----------------
yinying-lisa-li wrote:
Sounds good!
https://github.com/llvm/llvm-project/pull/77124
More information about the Mlir-commits
mailing list