Skip to content

Commit 7a0c7fa

Browse files
authored
Fixes for oneCCL and oneDNN samples (#1988)
1 parent a99260b commit 7a0c7fa

4 files changed

Lines changed: 18 additions & 18 deletions

File tree

Libraries/oneCCL/oneCCL_Getting_Started/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ cmake_minimum_required(VERSION 3.4)
22
if("${CMAKE_CXX_COMPILER}" STREQUAL "")
33
set(CMAKE_C_COMPILER "icx")
44
set(CMAKE_CXX_COMPILER "icpx")
5-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl")
5+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsycl")
66
endif()
77
project (oneCCL_Getting_Started)
88
if("$ENV{EXAMPLE_ROOT}" STREQUAL "")
99
message(" - use default examples")
1010
if($ENV{CCL_CONFIGURATION} MATCHES "cpu_gpu_dpcpp")
11-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/sycl DESTINATION src)
11+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/sycl DESTINATION src)
1212
endif()
13-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/cpu DESTINATION src)
14-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/common DESTINATION src)
15-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/benchmark DESTINATION src)
16-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/external_launcher DESTINATION src)
17-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/include DESTINATION src)
18-
file(COPY $ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples/CMakeLists.txt DESTINATION src)
13+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/cpu DESTINATION src)
14+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/common DESTINATION src)
15+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/benchmark DESTINATION src)
16+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/external_launcher DESTINATION src)
17+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/include DESTINATION src)
18+
file(COPY $ENV{CCL_ROOT}/share/doc/ccl/examples/CMakeLists.txt DESTINATION src)
1919
add_subdirectory (${PROJECT_BINARY_DIR}/src out)
2020
else()
2121
add_subdirectory ($ENV{EXAMPLE_ROOT} out)

Libraries/oneCCL/tutorials/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif()
66
project (oneDNN)
77
if("$ENV{EXAMPLE_ROOT}" STREQUAL "")
88
message(" - use default examples")
9-
add_subdirectory ($ENV{CCL_ROOT}/../ccl/latest/share/doc/ccl/examples out)
9+
add_subdirectory ($ENV{CCL_ROOT}/share/doc/ccl/examples out)
1010
else()
1111
add_subdirectory ($ENV{EXAMPLE_ROOT} out)
1212
endif()

Libraries/oneDNN/getting_started/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ if("${CMAKE_CXX_COMPILER}" STREQUAL "")
44
set(CMAKE_CXX_COMPILER "icx")
55
endif()
66
project (getting_started)
7-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.cpp")
8-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.h")
9-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.hpp")
7+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.cpp")
8+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.h")
9+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/ DESTINATION src FILES_MATCHING PATTERN "*.hpp")
1010

11-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/CMakeLists.txt DESTINATION src)
11+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/CMakeLists.txt DESTINATION src)
1212
if(WIN32 AND ${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
13-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/template.vcxproj.user DESTINATION src)
13+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/template.vcxproj.user DESTINATION src)
1414
else()
15-
file(COPY $ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples/dpcpp_driver_check.cmake DESTINATION src)
15+
file(COPY $ENV{DNNLROOT}/share/doc/dnnl/examples/dpcpp_driver_check.cmake DESTINATION src)
1616
endif()
1717
add_subdirectory (${PROJECT_BINARY_DIR}/src bin)

Libraries/oneDNN/tutorials/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if("${CMAKE_CXX_COMPILER}" STREQUAL "")
55
endif()
66
project (oneDNN)
77
if("$ENV{EXAMPLE_ROOT}" STREQUAL "")
8-
message(" - use default examples")
9-
add_subdirectory ($ENV{ONEAPI_ROOT}/../dnnl/latest/share/doc/dnnl/examples out)
8+
message(" - use default examples")
9+
add_subdirectory ($ENV{DNNLROOT}/share/doc/dnnl/examples/ out)
1010
else()
11-
add_subdirectory ($ENV{EXAMPLE_ROOT} out)
11+
add_subdirectory ($ENV{EXAMPLE_ROOT} out)
1212
endif()

0 commit comments

Comments
 (0)