File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ add_subdirectory(knn)
1111add_subdirectory (gpairs)
1212add_subdirectory (dbscan)
1313
14- # generate dpcpp version into json
15- file (WRITE
16- ${CMAKE_SOURCE_DIR} /dpbench/configs/framework_info/dpcpp_version.json
17- "{ \" dpcpp_version \" :"
18- " \" "
19- ${CMAKE_CXX_COMPILER_ID}
20- " "
21- ${CMAKE_CXX_COMPILER_VERSION}
22- " \" }" )
14+ # generate dpcpp version into config
15+ set (FILE ${CMAKE_SOURCE_DIR} /dpbench/configs/framework_info/dpcpp.toml)
16+ set (WRITE_VERSION " ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} " )
17+
18+ file (READ ${FILE} FILE_CONTENTS)
19+ string ( REGEX REPLACE "dpcpp_version = \" [^ \" ]* \" "
20+ "dpcpp_version = \" ${WRITE_VERSION} \" " FILE_CONTENTS " ${FILE_CONTENTS} " )
21+
22+ file (WRITE ${FILE} " ${FILE_CONTENTS } " )
You can’t perform that action at this time.
0 commit comments