Skip to content

Mlir#2

Open
wsmoses wants to merge 14 commits intomainfrom
mlir
Open

Mlir#2
wsmoses wants to merge 14 commits intomainfrom
mlir

Conversation

@wsmoses
Copy link
Owner

@wsmoses wsmoses commented Aug 6, 2025

No description provided.

ftynse and others added 2 commits August 5, 2025 09:55
* drop manual `__enzyme_autodiff` when unguarded by a flag
* modify thrust API
* update makefiles to compile with enzyme-jax
@wsmoses
Copy link
Owner Author

wsmoses commented Aug 6, 2025

@ftynse

LIB_RAISE_PATH ?= $(HOME)/git/Enzyme-JaX/bazel-bin/libRaise.so
REACTANT_EXTRA_PATH ?= $(HOME)/git/Reactant.jl/deps/ReactantExtra/bazel-bin/

export REACTANT_DEBUG=1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drop debug output when no longer needed? (For some reason cannot suggest changes through github)

wsmoses and others added 6 commits January 5, 2026 12:04
Gets rid of the -fplugin way of building LBM. We still have to use the
-add-plugin option to initiate the custom frontend action.
Add a new Makefile for builds with embedded-clang
else
CFLAGS += -mllvm -enzyme-loop-invariant-cache=0
endif
# ifeq ($(NEWCACHE),yes)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make an extra var WITH_RECTANT, which these ifs are inside of [so then enzyme-llvm still works with the makefile]

ENZYME_LOAD_FLAGS += -fplugin=$(ENZYME_PATH)
endif

CFLAGS += -ffast-math --cuda-path=$(CUDA_PATH) -L$(CUDA_PATH)/lib64 --cuda-gpu-arch=sm_$(SM_VERSION) -std=c++11 $(ENZYME_LOAD_FLAGS) -Xclang -add-plugin -Xclang enzyme -mllvm -raising-plugin-path -mllvm $(LIB_RAISE_PATH) -mllvm -reactant-backend -mllvm cuda -x cuda -fno-exceptions
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this does not need -Xclang -add-plugin -Xclang enzyme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants