Conversation
* drop manual `__enzyme_autodiff` when unguarded by a flag * modify thrust API * update makefiles to compile with enzyme-jax
Owner
Author
ftynse
approved these changes
Aug 6, 2025
| 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 |
Collaborator
There was a problem hiding this comment.
Drop debug output when no longer needed? (For some reason cannot suggest changes through github)
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
wsmoses
commented
Feb 23, 2026
| else | ||
| CFLAGS += -mllvm -enzyme-loop-invariant-cache=0 | ||
| endif | ||
| # ifeq ($(NEWCACHE),yes) |
Owner
Author
There was a problem hiding this comment.
make an extra var WITH_RECTANT, which these ifs are inside of [so then enzyme-llvm still works with the makefile]
wsmoses
commented
Feb 23, 2026
| 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 |
Owner
Author
There was a problem hiding this comment.
this does not need -Xclang -add-plugin -Xclang enzyme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.