Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Cute tests #57

Merged
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a726bd3
Updating README-sycl.md to capture the 3.5 modifications (#16)
mehdi-goli Apr 4, 2024
84e730f
Revert "Updating README-sycl.md to capture the 3.5 modifications (#16…
mehdi-goli Apr 4, 2024
4e901a6
Merge remote-tracking branch 'upstream/sycl-develop' into sycl-develop
AD2605 Apr 4, 2024
9fd5087
Merge branch 'codeplaysoftware:sycl-develop' into sycl-develop
AD2605 Apr 9, 2024
a57b605
Merge remote-tracking branch 'upstream/sycl-develop' into sycl-develop
AD2605 Apr 10, 2024
256f6c5
Merge remote-tracking branch 'upstream/sycl-develop' into sycl-develop
AD2605 Apr 16, 2024
4568ea7
Merge remote-tracking branch 'upstream/sycl-develop' into sycl-develop
AD2605 Apr 16, 2024
b9cb745
Merge remote-tracking branch 'upstream/sycl-develop' into sycl-develop
AD2605 Apr 18, 2024
59f2630
Merge remote-tracking branch 'upstream/sycl-develop' into atharva/ena…
AD2605 Apr 30, 2024
f25e749
enable cute tests via SYCL
AD2605 Apr 30, 2024
a840ff8
add inline in macros to prevent multiple definitions
AD2605 May 1, 2024
b34cbb6
Add new line at EOF in CMake
AD2605 May 3, 2024
d93981d
add ifdef around FilterArchitecture function
AD2605 May 6, 2024
c8a407b
enable compilation of test_unit in sycl path
AD2605 May 6, 2024
2225c28
Merge remote-tracking branch 'upstream/sycl-develop' into atharva/ena…
AD2605 May 6, 2024
4ce59a7
add newlines
AD2605 May 6, 2024
468ce3a
layout_operator.cpp
AD2605 May 6, 2024
79f0c8b
Merge remote-tracking branch 'upstream/sycl-develop' into atharva/ena…
AD2605 May 7, 2024
aa8c304
fix compilation after merge
AD2605 May 7, 2024
ec44c57
Clean up and fix issue adding sycl to library targets
aacostadiaz May 9, 2024
498ee09
Cosmetic
aacostadiaz May 9, 2024
2773e21
Cosmetic
aacostadiaz May 9, 2024
2981af8
Cosmetic
aacostadiaz May 9, 2024
7c28049
Cosmetic
aacostadiaz May 9, 2024
ad35fe7
Cosmetic
aacostadiaz May 9, 2024
6a80d03
Cosmetic
aacostadiaz May 9, 2024
d0873df
Cosmetic
aacostadiaz May 9, 2024
0b40132
Use .cu file
aacostadiaz May 9, 2024
37a2d61
Cosmetic
aacostadiaz May 9, 2024
4b35724
Merge branch 'refs/heads/sycl-develop' into fork/atharva/enable_cute_…
aacostadiaz May 13, 2024
10c85c9
Bump cmake min required version
aacostadiaz May 13, 2024
c4fbc58
Update test/unit/CMakeLists.txt
aacostadiaz May 13, 2024
c5741c1
Address comments
aacostadiaz May 13, 2024
dd85bb1
Address comments
aacostadiaz May 13, 2024
13b9b2d
Address comments
aacostadiaz May 13, 2024
20804fd
Merge branch 'refs/heads/sycl-develop' into fork/atharva/enable_cute_…
aacostadiaz May 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions test/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ target_link_libraries(
cuda_driver
)

if(${CUTLASS_ENABLE_SYCL})
add_sycl_to_target(TARGET cutlass_test_unit_infra)
endif()

cutlass_add_library(
cutlass_test_unit_infra_lib
OBJECT
Expand All @@ -59,6 +63,10 @@ target_link_libraries(
cutlass_test_unit_infra
)

if(${CUTLASS_ENABLE_SYCL})
add_sycl_to_target(TARGET cutlass_test_unit_infra_lib)
endif()

set(CUTLASS_TEST_UNIT_RESULTS_CACHE_DIR ${CMAKE_CURRENT_LIST_DIR}/data/hashes)

function(cutlass_test_unit_add_executable NAME)
Expand Down Expand Up @@ -98,6 +106,10 @@ function(cutlass_test_unit_add_executable NAME)
if (CUTLASS_ENABLE_OPENMP_TESTS AND OpenMP_CXX_FOUND)
target_link_libraries(${NAME} PRIVATE OpenMP::OpenMP_CXX)
endif()

if(${CUTLASS_ENABLE_SYCL})
add_sycl_to_target(TARGET ${NAME})
endif()

string(REGEX REPLACE cutlass_ "" NAME_STEM ${NAME})

Expand Down
7 changes: 7 additions & 0 deletions test/unit/cute/layout/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

if(${CUTLASS_ENABLE_SYCL})
cutlass_test_unit_add_executable(
cutlass_sycl_test_unit_cute_layout
layout_operator.cpp
)
else()
cutlass_test_unit_add_executable(
cutlass_test_unit_cute_layout
layout_operator.cu
)
endif()
AD2605 marked this conversation as resolved.
Show resolved Hide resolved
32 changes: 32 additions & 0 deletions test/unit/cute/layout/layout_operator.cpp
aacostadiaz marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/***************************************************************************************************
* Copyright (c) 2023 - 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: BSD-3-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
**************************************************************************************************/

#include "layout_operator.cu"
aacostadiaz marked this conversation as resolved.
Show resolved Hide resolved