Skip to content

Commit

Permalink
updated test files
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Sep 24, 2023
1 parent ebd5680 commit 29c2ef5
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 47 deletions.
3 changes: 0 additions & 3 deletions backend/src/cmakegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
endif()
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
find_package(fmt REQUIRED CONFIG)
find_package(HPX REQUIRED CONFIG)
Expand Down
8 changes: 4 additions & 4 deletions backend/test/arr/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(arr)
add_executable(arr arr.cpp arr_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/cfg/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(cfg)
add_executable(cfg cfg.cpp cfg_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/cond/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(cond)
add_executable(cond cond.cpp cond_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/expr/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(expr)
add_executable(expr expr.cpp expr_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/fn/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(fn)
add_executable(fn fn.cpp fn_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/fnc/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(fnc)
add_executable(fnc fnc.cpp fnc_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/forall/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(forall)
add_executable(forall forall.cpp forall_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
8 changes: 4 additions & 4 deletions backend/test/heat/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(heat)
add_executable(heat heat.cpp heat_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down
16 changes: 8 additions & 8 deletions backend/test/heat/heat.hpp.good
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@
namespace heat {
extern struct __thisModule* __this;

#line 19 "heat.chpl"
#line 17 "heat.chpl"
extern std::int64_t ghosts;
#line 20 "heat.chpl"
#line 18 "heat.chpl"
extern double k;
#line 21 "heat.chpl"
#line 19 "heat.chpl"
extern double dt;
#line 22 "heat.chpl"
#line 20 "heat.chpl"
extern double dx;
#line 24 "heat.chpl"
#line 22 "heat.chpl"
extern std::int64_t nx;
#line 25 "heat.chpl"
#line 23 "heat.chpl"
extern std::int64_t nt;
#line 26 "heat.chpl"
#line 24 "heat.chpl"
extern std::int64_t threads;

struct __thisModule
{
#line 33 "heat.chpl"
#line 26 "heat.chpl"
void update(chplx::Array<double, chplx::Domain<1>>& d,
chplx::Array<double, chplx::Domain<1>>& d2);

Expand Down
8 changes: 4 additions & 4 deletions backend/test/tup/CMakeLists.txt.good
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
project(tup)
add_executable(tup tup.cpp tup_driver.cpp)
if(NOT APPLE)
set(CMAKE_CXX_STANDARD 20)
endif()
set(CMAKE_CXX_STANDARD 20)
set(CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" AND NOT APPLE)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -stdlib=libc++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
endif()
if(NOT Chplx_DIR)
message(FATAL_ERROR "Chplx_DIR variable undefined")
Expand Down

0 comments on commit 29c2ef5

Please sign in to comment.