feat: implement FCES optimizer python bindings, add telemetry & comparative Ackley benchmark
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import os
|
||||
from setuptools import setup
|
||||
from torch.utils.cpp_extension import BuildExtension, CppExtension
|
||||
|
||||
# Get absolute path to project directory
|
||||
proj_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
setup(
|
||||
name="fces_native",
|
||||
version="0.1.0",
|
||||
@@ -10,17 +14,17 @@ setup(
|
||||
name="fces_native",
|
||||
sources=[
|
||||
"fces_native.cpp",
|
||||
"../src/config.cpp",
|
||||
"../src/controller.cpp",
|
||||
"../src/population.cpp",
|
||||
"../src/fitness.cpp",
|
||||
"../src/evolution.cpp",
|
||||
"../src/spectral.cpp",
|
||||
"../src/oscillation.cpp",
|
||||
"../src/optimizer.cpp",
|
||||
"../src/telemetry.cpp",
|
||||
os.path.join(proj_dir, "src", "config.cpp"),
|
||||
os.path.join(proj_dir, "src", "controller.cpp"),
|
||||
os.path.join(proj_dir, "src", "population.cpp"),
|
||||
os.path.join(proj_dir, "src", "fitness.cpp"),
|
||||
os.path.join(proj_dir, "src", "evolution.cpp"),
|
||||
os.path.join(proj_dir, "src", "spectral.cpp"),
|
||||
os.path.join(proj_dir, "src", "oscillation.cpp"),
|
||||
os.path.join(proj_dir, "src", "optimizer.cpp"),
|
||||
os.path.join(proj_dir, "src", "telemetry.cpp"),
|
||||
],
|
||||
include_dirs=["../include"],
|
||||
include_dirs=[os.path.join(proj_dir, "include")],
|
||||
),
|
||||
],
|
||||
cmdclass={"build_ext": BuildExtension},
|
||||
|
||||
Reference in New Issue
Block a user