Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pykokkos/core/cpp_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, module_file: str, gpu_module_files: List[str]):

self.lib_path_env: str = "PK_KOKKOS_LIB_PATH"

self.format: bool = False
self.format: bool = os.getenv("PK_FORMAT") is not None
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just out of curiosity: this also formats with PK_FORMAT=0?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great catch, sorry I missed this in my code review. It should be something like os.getenv("PK_FORMAT", False) , which will default to False if not available


def compile_raw_source(
self,
Expand Down