mirror of
https://git.gfz-potsdam.de/naaice/poet.git
synced 2025-12-13 03:18:23 +01:00
update installation of weight files
This commit is contained in:
parent
0d457e1f2a
commit
672e1801cd
@ -1,7 +1,6 @@
|
||||
function(ADD_BENCH_TARGET TARGET POET_BENCH_LIST RT_FILES OUT_PATH)
|
||||
function(ADD_BENCH_TARGET TARGET POET_BENCH_LIST RT_FILES WEIGHT_FILES OUT_PATH)
|
||||
set(bench_install_dir share/poet/${OUT_PATH})
|
||||
|
||||
# create empty list
|
||||
set(OUT_FILES_LIST "")
|
||||
|
||||
foreach(BENCH_FILE ${${POET_BENCH_LIST}})
|
||||
@ -28,16 +27,15 @@ function(ADD_BENCH_TARGET TARGET POET_BENCH_LIST RT_FILES OUT_PATH)
|
||||
|
||||
install(FILES ${OUT_FILES_LIST} DESTINATION ${bench_install_dir})
|
||||
|
||||
# install all ADD_FILES to the same location
|
||||
install(FILES ${${RT_FILES}} DESTINATION ${bench_install_dir})
|
||||
|
||||
install(FILES ${${WEIGHT_FILES}} DESTINATION ${bench_install_dir})
|
||||
endfunction()
|
||||
|
||||
|
||||
# define target name
|
||||
set(BENCHTARGET benchmarks)
|
||||
|
||||
add_custom_target(${BENCHTARGET} ALL)
|
||||
|
||||
add_subdirectory(barite)
|
||||
add_subdirectory(dolo)
|
||||
add_subdirectory(surfex)
|
||||
add_subdirectory(dolo)
|
||||
@ -7,7 +7,7 @@ set(runtime_files
|
||||
barite_200_rt.R
|
||||
)
|
||||
|
||||
set(model_weights
|
||||
set(weight_files
|
||||
barite_trained.weights.h5)
|
||||
|
||||
# add_custom_target(barite_bench DEPENDS ${bench_files} ${runtime_files})
|
||||
@ -15,7 +15,7 @@ set(model_weights
|
||||
ADD_BENCH_TARGET(barite_bench
|
||||
bench_files
|
||||
runtime_files
|
||||
model_weights
|
||||
weight_files
|
||||
"barite"
|
||||
)
|
||||
|
||||
|
||||
@ -6,14 +6,14 @@ set(runtime_files
|
||||
dolo_interp_rt_dt2000.R
|
||||
)
|
||||
|
||||
set(model_weights
|
||||
set(weight_files
|
||||
dolomite_trained.weights.h5)
|
||||
|
||||
ADD_BENCH_TARGET(
|
||||
dolo_bench
|
||||
bench_files
|
||||
runtime_files
|
||||
model_weights
|
||||
weight_files
|
||||
"dolo"
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user