Skip to content

Commit

Permalink
Run sycl ampere example on cuda
Browse files Browse the repository at this point in the history
  • Loading branch information
aacostadiaz committed May 27, 2024
1 parent 7faa4d3 commit 26d4b4a
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 788 deletions.
20 changes: 11 additions & 9 deletions benchmarks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ function(cutlass_benchmark_add_executable NAME)

add_dependencies(cutlass_benchmarks ${NAME})

if (NOT CUTLASS_ENABLE_SYCL)
SET(ADD_CUDA ON)
endif()

target_link_libraries(
${NAME}
PRIVATE
CUTLASS
cutlass_tools_util_includes
)

target_include_directories(
${NAME}
PRIVATE
${CUTLASS_BENCHMARKS_COMMON_SOURCE_DIR}
)
$<$<BOOL:${CUTLASS_ENABLE_CUBLAS}>:nvidia::cublas>
$<$<BOOL:${ADD_CUDA}>:cuda>
)

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

install(
TARGETS ${NAME}
Expand All @@ -66,6 +68,6 @@ endfunction()

if(SYCL_INTEL_TARGET)
add_subdirectory(pvc)
else(SYCL_NVIDIA_TARGET)
else(SYCL_NVIDIA_TARGET OR NOT CUTLASS_ENABLE_SYCL)
add_subdirectory(ampere)
endif()
4 changes: 2 additions & 2 deletions benchmarks/ampere/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@

cutlass_benchmark_add_executable(
bench_ampere_gemm_fp16_fp16_fp32_tensor_op_fp32
bench_ampere_gemm_fp16_fp16_fp32_tensor_op_fp32.cpp
bench_ampere_gemm_fp16_fp16_fp32_tensor_op_fp32.cu
)

cutlass_benchmark_add_executable(
bench_ampere_gemm_bf16_bf16_fp32_tensor_op_fp32
bench_ampere_gemm_bf16_bf16_fp32_tensor_op_fp32.cpp
bench_ampere_gemm_bf16_bf16_fp32_tensor_op_fp32.cu
)
2 changes: 0 additions & 2 deletions examples/sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@

if(SYCL_INTEL_TARGET)
add_subdirectory(pvc)
else(SYCL_NVIDIA_TARGET)
add_subdirectory(ampere)
endif()
38 changes: 0 additions & 38 deletions examples/sycl/ampere/CMakeLists.txt

This file was deleted.

Empty file.
153 changes: 0 additions & 153 deletions examples/sycl/ampere/ampere_gemm_fp16_fp16_fp32_tensor_op_fp32.cpp

This file was deleted.

Loading

0 comments on commit 26d4b4a

Please sign in to comment.