Skip to content

Conversation

avik-pal
Copy link
Collaborator

@avik-pal avik-pal commented Sep 2, 2025

fixes #1608

const GATHER_GETINDEX_DISABLED = Ref(false)
const DEBUG_MODE = ScopedSetting(false)
const LARGE_CONSTANT_THRESHOLD = ScopedSetting(
GetPreference(Reactant, "large_constant_threshold", 100 << 20) # 100 MiB
Copy link
Contributor

Choose a reason for hiding this comment

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

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
GetPreference(Reactant, "large_constant_threshold", 100 << 20) # 100 MiB
GetPreference(Reactant, "large_constant_threshold", 100 << 20), # 100 MiB

const DEBUG_ALIASED_BUFFER_ASSIGNMENT_ERROR = ScopedSetting(
GetPreference(Reactant, "debug_aliased_buffer_assignment_error", false)
)
const DEBUG_KERNEL = ScopedSetting(GetPreference(Reactant, "debug_kernel", false))
Copy link
Member

Choose a reason for hiding this comment

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

these compile time attributes really don't make sense to be scoped, since they're set once per the entire compilation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I just searched through and replaced them 😓. will go through all of them once

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.

Use ScopedSettings.jl to allow global configuration of flags

2 participants