Skip to content

Commit 985a617

Browse files
authored
ProbProg: Static HMC JLL changes (#1810)
* hmc jll changes * fix
1 parent ccd6fb9 commit 985a617

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

deps/ReactantExtra/API.cpp

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -373,21 +373,33 @@ enzymeActivityAttrGet(MlirContext ctx, int32_t val) {
373373
(mlir::enzyme::Activity)val));
374374
}
375375

376-
extern "C" MLIR_CAPI_EXPORTED MlirType enzymeTraceTypeGet(MlirContext ctx) {
376+
REACTANT_ABI MLIR_CAPI_EXPORTED MlirType enzymeTraceTypeGet(MlirContext ctx) {
377377
return wrap(mlir::enzyme::TraceType::get(unwrap(ctx)));
378378
}
379379

380-
extern "C" MLIR_CAPI_EXPORTED MlirType
380+
REACTANT_ABI MLIR_CAPI_EXPORTED MlirType
381381
enzymeConstraintTypeGet(MlirContext ctx) {
382382
return wrap(mlir::enzyme::ConstraintType::get(unwrap(ctx)));
383383
}
384384

385-
extern "C" MLIR_CAPI_EXPORTED MlirAttribute
385+
REACTANT_ABI MLIR_CAPI_EXPORTED MlirAttribute
386386
enzymeSymbolAttrGet(MlirContext ctx, uint64_t symbol) {
387387
mlir::Attribute attr = mlir::enzyme::SymbolAttr::get(unwrap(ctx), symbol);
388388
return wrap(attr);
389389
}
390390

391+
REACTANT_ABI MLIR_CAPI_EXPORTED MlirAttribute
392+
enzymeRngDistributionAttrGet(MlirContext ctx, int32_t val) {
393+
return wrap(mlir::enzyme::RngDistributionAttr::get(
394+
unwrap(ctx), (mlir::enzyme::RngDistribution)val));
395+
}
396+
397+
REACTANT_ABI MLIR_CAPI_EXPORTED MlirAttribute
398+
enzymeMCMCAlgorithmAttrGet(MlirContext ctx, int32_t val) {
399+
return wrap(mlir::enzyme::MCMCAlgorithmAttr::get(
400+
unwrap(ctx), (mlir::enzyme::MCMCAlgorithm)val));
401+
}
402+
391403
// Create profiler session and start profiling
392404
REACTANT_ABI tsl::ProfilerSession *
393405
CreateProfilerSession(uint32_t device_tracer_level,

0 commit comments

Comments
 (0)