Skip to content
Snippets Groups Projects
Commit fac70f4a authored by Benjamin Cumming's avatar Benjamin Cumming
Browse files

turn on generation of optimized mech kernels

parent 21f1e235
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,6 @@ external/tmp
mechanisms/*.hpp
# build path
build
build*
commit.msg
......@@ -8,7 +8,7 @@ foreach(mech ${mechanisms})
add_custom_command(OUTPUT "${hpp}"
DEPENDS modparser "${mod}"
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
COMMAND "${modcc}" -t cpu -o "${hpp}" "${mod}")
COMMAND "${modcc}" -t cpu -O -o "${hpp}" "${mod}")
set_source_files_properties("${hpp}" PROPERTIES GENERATED TRUE)
list(APPEND all_mod_hpps "${hpp}")
endforeach()
......
#flags="-t cpu -O"
flags="-t cpu"
for mech in pas hh expsyn
do
echo ../external/modparser/bin/modcc ${flags} -o ../include/mechanisms/$mech.hpp ./mod/$mech.mod
../external/modparser/bin/modcc ${flags} -o ../include/mechanisms/$mech.hpp ./mod/$mech.mod
done
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment