diff options
| author | WilliamMTK <[email protected]> | 2024-04-04 18:13:54 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-04 18:13:54 -0400 |
| commit | bc8061fd1e3c26be37e2cbb83ff9ca26e6f4dead (patch) | |
| tree | 8ed2e1e3b37a6add49dc18f73ce7ea17ff46ab06 /src/gpgpu-sim | |
| parent | 63893019e953269d1b0fb38e1fa8754992dd8d80 (diff) | |
Migrate gpgpu-sim build system to cmake (#66)
* migrate_cmake: add package dependency checking
* migrate_cmake: port setup_environment to CMake
* migrate_cmake: break dependency checking and env export gen to different .cmake files
* migrate_cmake: use CUDAToolkit_FOUND to test for CUDA compiler
* migrate_cmake: use CUDAToolkit_FOUND to test for CUDA compiler
* migrate_cmake: use CUDAToolkit_FOUND to test for CUDA compiler
* migrate_cmake: properly parse for cuda version number
* migrate_cmake: set highest CUDA supported to be 11.10.x
* migrate_cmake: specify top level CMake file
* migrate_cmake: add libcuda cmake file
* migrate_cmake: use global compiler options and definitions
* migrate_cmake: add cmake file to src
* migrate_cmake: add cmake files for cuda-sim folder
* migrate_cmake: add cmake files to gpgpu-sim folder
* migrate_cmake: add cmake files for intersim
* migrate_cmake: add short test using cmake
* migrate_cmake: bump CXX standard requirement to 17
* Add cmake files for accelwattch
* migrate_cmake: remove use of GLOB to grab source files
* migrate_cmake: comment out the write protection on generated instructions.h
* migrate_cmake: create sym folder and add newline to generated setup file
* migrate_cmake: fix some path issues
* migrate_cmake: let cmake thinks flex and bison generate CXX files
* migrate_cmake: fix not linking pthread properly
* migrate_cmake: remove debug message
* migrate_cmake: add empty libopencl cmake file
* migrate_cmake: install phase and runtime version detect
* Added install phase to install the shared object
and add symlinks
* Changes with CUDA toolkit will be detected and
triggered a rebuild
* GPGPU-Sim detailed version string will be updated
on each build
* Typo fix and fix correct bin dir
* Replace gcc -> g++ in intersim
* ignore setup
* check CMAKE_BUILD_TYPE
* set DCMAKE_BUILD_TYPE
---------
Co-authored-by: JRPAN <[email protected]>
Diffstat (limited to 'src/gpgpu-sim')
| -rw-r--r-- | src/gpgpu-sim/CMakeLists.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gpgpu-sim/CMakeLists.txt b/src/gpgpu-sim/CMakeLists.txt new file mode 100644 index 0000000..04f1973 --- /dev/null +++ b/src/gpgpu-sim/CMakeLists.txt @@ -0,0 +1,36 @@ +# Exclude power_interface.cc if no power model +list(APPEND gpgpusim_SRC addrdec.cc + dram.cc + dram_sched.cc + gpu-cache.cc + gpu-misc.cc + gpu-sim.cc + hashing.cc + histogram.cc + icnt_wrapper.cc + l2cache.cc + local_interconnect.cc + mem_fetch.cc + mem_latency_stat.cc + power_interface.cc + power_stat.cc + scoreboard.cc + shader.cc + stack.cc + stat-tool.cc + traffic_breakdown.cc + visualizer.cc) +if(NOT GPGPUSIM_USE_POWER_MODEL) + list(REMOVE_ITEM ${gpgpusim_SRC} power_interface.cc) +endif() + +# Create libgpgpusim.a +add_library(gpgpusim STATIC ${gpgpusim_SRC}) +target_include_directories(gpgpusim PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) +target_include_directories(gpgpusim PUBLIC ${CUDAToolkit_INCLUDE_DIRS}) + +if(GPGPUSIM_USE_POWER_MODEL) +target_compile_definitions(gpgpusim PRIVATE GPGPUSIM_POWER_MODEL) +target_include_directories(gpgpusim PRIVATE ${GPGPUSIM_POWER_MODEL}) +endif() + |
