Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required (VERSION 3.18)

project(CudaBmk)

set(CMAKE_CUDA_ARCHITECTURES 52 61 70 75)
enable_language(CUDA)

add_executable(cmem cmem.cu)
add_executable(diverge diverge.cu diverge2.cu diverge3.cu path.cu)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Makefile-diverge compiles diverge2.cu to diverge2.cu_sm_12_o with -arch sm_12 (because it is listed as CUFILES_sm_12=diverge2.cu). Similar arch-specific compiles happen with other targets.

I do not think that behaviour is reproduced here?

add_executable(global global.cu)
add_executable(icache icache.cu icache_kernels1.cu icache_kernels2.cu icache_kernels3.cu icache_kernels4.cu)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the original Makefiles, this executable is built as icache1.

The Makefiles also build icache2, icache3 and icache4.

add_executable(shared shared.cu)
add_executable(sync sync.cu sync2.cu)
add_executable(texture2 texture2.cu)
add_executable(texture4 texture4.cu)