mirror of
https://github.com/luxfi/pvm.git
synced 2026-10-30 15:20:39 +00:00
Establish PVM (Platform-VM) GPU substrate scaffold for LP-137
GPU-native compliance:
- pvm_gpu_layout.hpp ValidatorSlot, StakeRecord/Op, SlashEvidence,
EpochState, PVMRoundDescriptor, ValidatorOp,
PVMTransitionResult — all 16-byte aligned with
explicit pad to fixed arena strides for
byte-stable host/device ABI
- pvm_cpu_reference.cpp Deterministic CPU oracle implementing four
canonical kernels: ValidatorSetApply,
StakeTransition, SlashingTransition,
EpochTransition (root composition)
- pvm_layout_test 12 layout + reference-determinism checks; all
pass with byte-identical roots across runs
This closes the layout half of the P-Chain GPU-native gap. v0.53 ships
the matching CUDA + Metal transition kernels and the cross-backend
determinism harness.
234 lines
7.2 KiB
Makefile
234 lines
7.2 KiB
Makefile
# CMAKE generated file: DO NOT EDIT!
|
|
# Generated by "Unix Makefiles" Generator, CMake Version 4.3
|
|
|
|
# Default target executed when no arguments are given to make.
|
|
default_target: all
|
|
.PHONY : default_target
|
|
|
|
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
|
.NOTPARALLEL:
|
|
|
|
#=============================================================================
|
|
# Special targets provided by cmake.
|
|
|
|
# Disable implicit rules so canonical targets will work.
|
|
.SUFFIXES:
|
|
|
|
# Disable VCS-based implicit rules.
|
|
% : %,v
|
|
|
|
# Disable VCS-based implicit rules.
|
|
% : RCS/%
|
|
|
|
# Disable VCS-based implicit rules.
|
|
% : RCS/%,v
|
|
|
|
# Disable VCS-based implicit rules.
|
|
% : SCCS/s.%
|
|
|
|
# Disable VCS-based implicit rules.
|
|
% : s.%
|
|
|
|
.SUFFIXES: .hpux_make_needs_suffix_list
|
|
|
|
# Command-line flag to silence nested $(MAKE).
|
|
$(VERBOSE)MAKESILENT = -s
|
|
|
|
#Suppress display of executed commands.
|
|
$(VERBOSE).SILENT:
|
|
|
|
# A target that is always out of date.
|
|
cmake_force:
|
|
.PHONY : cmake_force
|
|
|
|
#=============================================================================
|
|
# Set environment variables for the build.
|
|
|
|
# The shell in which to execute make rules.
|
|
SHELL = /bin/sh
|
|
|
|
# The CMake executable.
|
|
CMAKE_COMMAND = /opt/homebrew/bin/cmake
|
|
|
|
# The command to remove a file.
|
|
RM = /opt/homebrew/bin/cmake -E rm -f
|
|
|
|
# Escaping for special characters.
|
|
EQUALS = =
|
|
|
|
# The top-level source directory on which CMake was run.
|
|
CMAKE_SOURCE_DIR = /Users/z/work/luxcpp/pvm
|
|
|
|
# The top-level build directory on which CMake was run.
|
|
CMAKE_BINARY_DIR = /Users/z/work/luxcpp/pvm/build
|
|
|
|
#=============================================================================
|
|
# Targets provided globally by CMake.
|
|
|
|
# Special rule for the target test
|
|
test:
|
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running tests..."
|
|
/opt/homebrew/bin/ctest $(ARGS)
|
|
.PHONY : test
|
|
|
|
# Special rule for the target test
|
|
test/fast: test
|
|
.PHONY : test/fast
|
|
|
|
# Special rule for the target edit_cache
|
|
edit_cache:
|
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
|
|
/opt/homebrew/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
.PHONY : edit_cache
|
|
|
|
# Special rule for the target edit_cache
|
|
edit_cache/fast: edit_cache
|
|
.PHONY : edit_cache/fast
|
|
|
|
# Special rule for the target rebuild_cache
|
|
rebuild_cache:
|
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
|
|
/opt/homebrew/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
.PHONY : rebuild_cache
|
|
|
|
# Special rule for the target rebuild_cache
|
|
rebuild_cache/fast: rebuild_cache
|
|
.PHONY : rebuild_cache/fast
|
|
|
|
# The main all target
|
|
all: cmake_check_build_system
|
|
$(CMAKE_COMMAND) -E cmake_progress_start /Users/z/work/luxcpp/pvm/build/CMakeFiles /Users/z/work/luxcpp/pvm/build//CMakeFiles/progress.marks
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
|
$(CMAKE_COMMAND) -E cmake_progress_start /Users/z/work/luxcpp/pvm/build/CMakeFiles 0
|
|
.PHONY : all
|
|
|
|
# The main clean target
|
|
clean:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
|
.PHONY : clean
|
|
|
|
# The main clean target
|
|
clean/fast: clean
|
|
.PHONY : clean/fast
|
|
|
|
# Prepare targets for installation.
|
|
preinstall: all
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
|
.PHONY : preinstall
|
|
|
|
# Prepare targets for installation.
|
|
preinstall/fast:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
|
.PHONY : preinstall/fast
|
|
|
|
# clear depends
|
|
depend:
|
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
|
.PHONY : depend
|
|
|
|
#=============================================================================
|
|
# Target rules for targets named lux_pvm_core
|
|
|
|
# Build rule for target.
|
|
lux_pvm_core: cmake_check_build_system
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 lux_pvm_core
|
|
.PHONY : lux_pvm_core
|
|
|
|
# fast build rule for target.
|
|
lux_pvm_core/fast:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/lux_pvm_core.dir/build.make CMakeFiles/lux_pvm_core.dir/build
|
|
.PHONY : lux_pvm_core/fast
|
|
|
|
#=============================================================================
|
|
# Target rules for targets named pvm-layout-test
|
|
|
|
# Build rule for target.
|
|
pvm-layout-test: cmake_check_build_system
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 pvm-layout-test
|
|
.PHONY : pvm-layout-test
|
|
|
|
# fast build rule for target.
|
|
pvm-layout-test/fast:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/pvm-layout-test.dir/build.make CMakeFiles/pvm-layout-test.dir/build
|
|
.PHONY : pvm-layout-test/fast
|
|
|
|
src/pvm_cpu_reference.o: src/pvm_cpu_reference.cpp.o
|
|
.PHONY : src/pvm_cpu_reference.o
|
|
|
|
# target to build an object file
|
|
src/pvm_cpu_reference.cpp.o:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/lux_pvm_core.dir/build.make CMakeFiles/lux_pvm_core.dir/src/pvm_cpu_reference.cpp.o
|
|
.PHONY : src/pvm_cpu_reference.cpp.o
|
|
|
|
src/pvm_cpu_reference.i: src/pvm_cpu_reference.cpp.i
|
|
.PHONY : src/pvm_cpu_reference.i
|
|
|
|
# target to preprocess a source file
|
|
src/pvm_cpu_reference.cpp.i:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/lux_pvm_core.dir/build.make CMakeFiles/lux_pvm_core.dir/src/pvm_cpu_reference.cpp.i
|
|
.PHONY : src/pvm_cpu_reference.cpp.i
|
|
|
|
src/pvm_cpu_reference.s: src/pvm_cpu_reference.cpp.s
|
|
.PHONY : src/pvm_cpu_reference.s
|
|
|
|
# target to generate assembly for a file
|
|
src/pvm_cpu_reference.cpp.s:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/lux_pvm_core.dir/build.make CMakeFiles/lux_pvm_core.dir/src/pvm_cpu_reference.cpp.s
|
|
.PHONY : src/pvm_cpu_reference.cpp.s
|
|
|
|
test/pvm_layout_test.o: test/pvm_layout_test.cpp.o
|
|
.PHONY : test/pvm_layout_test.o
|
|
|
|
# target to build an object file
|
|
test/pvm_layout_test.cpp.o:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/pvm-layout-test.dir/build.make CMakeFiles/pvm-layout-test.dir/test/pvm_layout_test.cpp.o
|
|
.PHONY : test/pvm_layout_test.cpp.o
|
|
|
|
test/pvm_layout_test.i: test/pvm_layout_test.cpp.i
|
|
.PHONY : test/pvm_layout_test.i
|
|
|
|
# target to preprocess a source file
|
|
test/pvm_layout_test.cpp.i:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/pvm-layout-test.dir/build.make CMakeFiles/pvm-layout-test.dir/test/pvm_layout_test.cpp.i
|
|
.PHONY : test/pvm_layout_test.cpp.i
|
|
|
|
test/pvm_layout_test.s: test/pvm_layout_test.cpp.s
|
|
.PHONY : test/pvm_layout_test.s
|
|
|
|
# target to generate assembly for a file
|
|
test/pvm_layout_test.cpp.s:
|
|
$(MAKE) $(MAKESILENT) -f CMakeFiles/pvm-layout-test.dir/build.make CMakeFiles/pvm-layout-test.dir/test/pvm_layout_test.cpp.s
|
|
.PHONY : test/pvm_layout_test.cpp.s
|
|
|
|
# Help Target
|
|
help:
|
|
@echo "The following are some of the valid targets for this Makefile:"
|
|
@echo "... all (the default if no target is provided)"
|
|
@echo "... clean"
|
|
@echo "... depend"
|
|
@echo "... edit_cache"
|
|
@echo "... rebuild_cache"
|
|
@echo "... test"
|
|
@echo "... lux_pvm_core"
|
|
@echo "... pvm-layout-test"
|
|
@echo "... src/pvm_cpu_reference.o"
|
|
@echo "... src/pvm_cpu_reference.i"
|
|
@echo "... src/pvm_cpu_reference.s"
|
|
@echo "... test/pvm_layout_test.o"
|
|
@echo "... test/pvm_layout_test.i"
|
|
@echo "... test/pvm_layout_test.s"
|
|
.PHONY : help
|
|
|
|
|
|
|
|
#=============================================================================
|
|
# Special targets to cleanup operation of make.
|
|
|
|
# Special rule to run CMake to check the build system integrity.
|
|
# No rule that depends on this can have commands that come from listfiles
|
|
# because they might be regenerated.
|
|
cmake_check_build_system:
|
|
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
|
.PHONY : cmake_check_build_system
|
|
|