Skip to content

Commit ddcfeb6

Browse files
terdnerJoeOster
andauthored
Fixing compile flag and path to output file (#155)
* initial commit of openMP example. Signed-off-by: todd.erdner <[email protected]> * Initial commit of the dpc_reduce Signed-off-by: todd.erdner <[email protected]> * added guid to sample.json Signed-off-by: todd.erdner <[email protected]> * fixed sample.json files. Signed-off-by: todd.erdner <[email protected]> * fixed the include files. Somehow I copied a slightly old repo and it still had <chrono> and the omp_common.hpp file. They have been removed. Signed-off-by: todd.erdner <[email protected]> * added license.txt file ran through formating tool one more time removed all calls to "std::endl" and replaced with " \n" Signed-off-by: todd.erdner <[email protected]> * renamed license.txt to License.txt Signed-off-by: todd.erdner <[email protected]> * added "ciTests" to the sample.json file. It passed the check. Signed-off-by: todd.erdner <[email protected]> * fixed make error Signed-off-by: todd.erdner <[email protected]> * fixed sample.json Signed-off-by: todd.erdner <[email protected]> * removed "2020" from the License.txt file due to update guidelines. Signed-off-by: todd.erdner <[email protected]> * added comment regarding where you can find dpc_common in both files per Paul's comments. Signed-off-by: todd.erdner <[email protected]> * Modified names of the functions to represent what they do (ie. calc_pi_*) per suggestion from Paul. Signed-off-by: todd.erdner <[email protected]> * initial check-in to the C++ repo Signed-off-by: todd.erdner <[email protected]> * put correct comment on dpc_common.hpp Signed-off-by: todd.erdner <[email protected]> * added commenting indicating where they can find corresponding include files. Signed-off-by: todd.erdner <[email protected]> * added comment line Signed-off-by: todd.erdner <[email protected]> * removed openMP repo from DPC++ as it will be moved to C++ directory * Update README.md * Update README.md * Update README.md * Update README.md * fixed category line in sample.json to match exact text expected. * removing openMP from the DPC directory. It has been moved to C++ directory. * fixed tf_init call Signed-off-by: todd.erdner <[email protected]> * removed all calls into PSTL internal logic. This is what was causing fails between beta08 and beta09. Signed-off-by: todd.erdner <[email protected]> * fixed env variable to run on CPU Signed-off-by: todd.erdner <[email protected]> * update Readme file to include information about setting env variable to allocate more memory for any runs on the cpu Signed-off-by: todd.erdner <[email protected]> * added option in Cmake file to support unnamed lambda option. You need this to compile if the environment doesn't have this set by default. Signed-off-by: todd.erdner <[email protected]> * path to output file from compile has changed. it no longer seems to create the src directory. Co-authored-by: JoeOster <[email protected]>
1 parent 023c83a commit ddcfeb6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DirectProgramming/DPC++/ParallelPatterns/dpc_reduce/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ if (NOT CMAKE_BUILD_TYPE)
1212
FORCE)
1313
endif()
1414

15-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fsycl -std=c++17")
15+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fsycl -std=c++17 -fsycl-unnamed-lambda")
1616

1717
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -ltbb -lsycl")
1818

1919
add_executable (dpc_reduce src/main.cpp)
2020

2121
add_custom_target (run
22-
COMMAND CL_CONFIG_CPU_FORCE_PRIVATE_MEM_SIZE=16MB dpc_reduce
22+
COMMAND CL_CONFIG_CPU_FORCE_PRIVATE_MEM_SIZE=16MB ./dpc_reduce
2323
WORKING_DIRECTORY ${CMAKE_PROJECT_DIR}
2424
)

DirectProgramming/DPC++/ParallelPatterns/dpc_reduce/sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"cd build",
2121
"cmake ..",
2222
"make",
23-
"CL_CONFIG_CPU_FORCE_PRIVATE_MEM_SIZE=16MB ./src/dpc_reduce"
23+
"CL_CONFIG_CPU_FORCE_PRIVATE_MEM_SIZE=16MB ./dpc_reduce"
2424
]
2525
}
2626
]

0 commit comments

Comments
 (0)