Skip to content

Commit

Permalink
Merge pull request #54 from ytopt-team/develop1
Browse files Browse the repository at this point in the history
Develop1
  • Loading branch information
wuxf99 authored Jul 6, 2023
2 parents 39c454b + b6fa770 commit c7740d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions ytopt/benchmark/xsbench-mpi-omp/xsbench/problem_cons.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, os.path.dirname(HERE)+ '/plopper')
from plopper import Plopper
from ytopt.benchmark.plopper.plublic_plopper import CompilePlopper
from ytopt.benchmark.plopper.cmds import MAT_GCC_CMD

# create an object of ConfigSpace
cs = CS.ConfigurationSpace(seed=1234)
Expand Down Expand Up @@ -36,7 +37,8 @@
dir_path = os.path.dirname(os.path.realpath(__file__))
kernel_idx = dir_path.rfind('/')
kernel = dir_path[kernel_idx+1:]
obj = Plopper(dir_path+'/mmp_cons.c',dir_path)
obj = CompilePlopper(dir_path+'/mmp_cons.c',dir_path)
obj.set_compile_command(MAT_GCC_CMD)

x1=['p0','p1','p2','p3']
def myobj(point: dict):
Expand Down
6 changes: 4 additions & 2 deletions ytopt/benchmark/xsbench-omp/xsbench/problem_cons.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

HERE = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(1, os.path.dirname(HERE)+ '/plopper')
from plopper import Plopper
from ytopt.benchmark.plopper import CompilePlopper
from ytopt.benchmark.plopper.cmds import MAT_GCC_CMD

# create an object of ConfigSpace
cs = CS.ConfigurationSpace(seed=1234)
Expand Down Expand Up @@ -39,7 +40,8 @@
dir_path = os.path.dirname(os.path.realpath(__file__))
kernel_idx = dir_path.rfind('/')
kernel = dir_path[kernel_idx+1:]
obj = Plopper(dir_path+'/mmp_cons.c',dir_path)
obj = CompilePlopper(dir_path+'/mmp_cons.c',dir_path)
obj.set_compile_command(MAT_GCC_CMD)

x1=['p0','p1','p2','p3']
def myobj(point: dict):
Expand Down

0 comments on commit c7740d9

Please sign in to comment.