summaryrefslogtreecommitdiff
path: root/libcuda
AgeCommit message (Collapse)Author
2025-08-19running formatter (#126)JRPan
* running formatter * consolidate CI runs * use cluster to run formatter * use cluster to run formatter * Add a CI-Success step
2025-07-09add v2 of device proprites (#124)Ahmad Alawneh
2025-03-06sst-integration-stream: make SST integration works with streams (#103)WilliamMTK
* sst-integration-stream: add apis to make SST integration works with stream * Add dev container specs
2025-02-24fix_cudaStreamSynchronize: fix the issue (#100)WilliamMTK
2025-02-18A bunch of maintenance fixes, the largest of which is getting the PTX ↵Tim Rogers
simulation to work with CUDA 12. (#95) * Fixing the formatter to always use a consistent format and running it on the codebase * Update linux-so-version.txt * Update Makefile * A couple of unnecessary files that are lingering around * Support CUDA 12 * Getting the PTX simulations to work with CUDA 12. The issue is that ptxas added more information (number of barriers and compile time). We have to parse these or lexx/yacc fail. * Update ptxinfo.l debug MACRO was ineffective * Update gpgpusim_check.cmake Update to make the CUDA version print a warning, not an error and updating the print to be more reflective of what the actual problem is.
2025-02-14Cuda12 (#94)Ahmad Alawneh
* added support to cuda 12, by predicating texuture cache * format code
2024-12-11Add SST integration into gpgpusim (#44)WilliamMTK
* Add accommodations to run gpgpusim with SST simulation framework through balar * Output setup_environment options when sourcing * Add SST directive check when creating sim thread * Add sst side test for jenkins * sst-integration: update Jenkinsfile with offical sst-elements repo and fix bugs in pipeline script * sst-integration: direct jenkins to rebuild gpgpusim before testing for sst * sst-integration: fix bugs in sst repos config * sst-integration: let Jenkins rebuilds simulator Since the simulator needs to be configured with both normal mode and sst mode, need to rebuild make target to clean prior runs. * sst-integration: Update Jenkinsfile to source env vars when running balar test * sst-integration: refactor code to remove __SST__ flag * sst-integration: fix a bug that init cluster twice for sst * sst-integration: fix a bug of not sending mem packets to SST * sst-integration: remove sst flags from makefiles and setup_env * sst-integration: add comments to SST changes * sst-integration: remove rebuilding simulator in jenkins when testing for SST * sst-integration: revert simulator build script * Add a function to support querying function argument info for SST * sst-integration: add version detection for vanadis binary * Automated Format * add version detection support for gcc 10+ * sst-integration: add cudaMallocHost for SST * sst-integration: fix a compilation bug * sst-integration: add sst balar unittest CI * sst-integration: specify GPU_ARCH for CI test * sst-integration: use bash for github actions * sst-integration: use https links for sst repos * sst-integration: add SST dependencies to CI config * sst-integration: remove sudo * sst-integration: default to yes for apt install * sst-integration: add manual trigger for github action * sst-integration: remove wrong on event * sst-integration: limit CPU usage for compilation * sst-integration: fix wrong path * sst-integration: use personal repo for testing * sst-integration: remove sst-core source in CI to free space * sst-integration: SST_Cycle use print stats with stream id * Automated Format * sst-integration: check for diskspace and try to clean it * sst-integration: move out of docker image * sst-integration: testing for ci path * sst-integration: fix syntax * sst-integration: pass env vars * sst-integration: set env properly * sst-integration: merge LLVM build and test into same job * sst-integration: fix step order * sst-integration: checkout correct branch for env-setup * sst-integration: remove resourcing gpu apps * sst-integration: revert back to docker github action * sst-integration: enable debug trace for sst testing * sst-integration: resourcing gpu app for env vars * sst-integration: use GPUAPPS_ROOT for path for gpu app * sst-integration: use GPUAPPS_ROOT for path for gpu app * sst-integration: enable parallel ci tests and fix not returning with cudaMallocHostSST * sst-integration: using debug flag for CI run * sst-integration: revert debug ci run * sst-integration: CI skips cuda sdk download and launch multiple jobs * sst-integration: reenable parallel tests * sst-integration: reduce concurrent test thread count * sst-integration: skip long test for github runner * sst-integration: try running CI with single core * sst-integrtion: add callback to SST to check thread sync is done in SST_Cycle() * sst-integration: ignore lookup if already found and add callbacks to SST * Automated Format * sst-integration: add support for indirect texture access * Automated Format * sste-integration: fix up for PR * Automated Format --------- Co-authored-by: purdue-jenkins <[email protected]>
2024-08-21Stream stats (#71)JRPan
* Temp commit for Justin and Cassie to sync on code changes for adding per-stream status. * Resolved compile errors. * Removed redundant parameter * Passed cuda_stream_id from accelsim to gpgpusim * Cleaned up unused changes * Changed vector to map, having operator problems. * StreamID defaults to zero * Implemented streams to inc_stats and so on * Fixed TOTAL_ACCESS counts * Implemented GLOBAL_TIMER. * Fixed m_shader->get_kernel SEGFAULT issue in shader.cc. * Use warp_init to track streamID instead of issue_warp * Removed temp debug print * Modified cache_stats to only print data from latest finished stream Added optional arg to cache_stats::print_stats, cache_stats::print_fail_stats and their upstream functions. When streamID is specified, print stats from that stream. When not specified, print all stats. NOTE: current implementation depending on streamid never equals -1 * Removed default arg values of streamID * modified constructor of mem_fetch to pass in streamID * changed get_streamid to get_streamID * Added TODO to gpgpusim_entrypoint.cc and power_stat.cc * Only collect power stats when enabled * print last finished stream in PTX mode using last_streamID * take out additional printf * Add a field to baseline cache to indicate cache level * save gpu object in cache * Print stream ID only once per kernel * rm test print * use -1 for default stream id * cleanup debug prints * remove GLOABL_TIMER * Automated clang-format * Should be correct to print everything in power model * addressing concerns & errors * Automated clang-format * add m_stats_pw in operator+ * Automated Format --------- Co-authored-by: Justin Qiao <[email protected]> Co-authored-by: Justin Qiao <[email protected]> Co-authored-by: Tim Rogers <[email protected]> Co-authored-by: JRPan <[email protected]> Co-authored-by: purdue-jenkins <[email protected]>
2024-07-16Auto clang format (#74)Aaron Barnes
* add automated clang formatter * Automated clang-format * use /bin/bash and add print * use default checkout ref * Format only after tests are success * Run CI on merge group --------- Co-authored-by: barnes88 <[email protected]> Co-authored-by: JRPAN <[email protected]>
2024-04-04Migrate gpgpu-sim build system to cmake (#66)WilliamMTK
* 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]>
2023-06-12no return warnings ngs fixAhmad Alawneh
2023-06-12more unused var fixesAhmad Alawneh
2023-06-12fixing bunch of formatting warnings (#53)Ahmad Alawneh
* fixing bunch of formating warrnings * remove unintialized and unused results warnnings * revert the changes , as it doenst fix the warning --------- Co-authored-by: Fangjia Shen <[email protected]>
2020-04-21Small change from the auto-formattertgrogers
2020-04-09Missed a line in the merge that was causing livelock on the asyncAPI apptgrogers
2020-04-07Merge remote-tracking branch 'localpub/dev' into devtgrogers
2020-02-27Merge pull request #137 from gangmul12/deadlock_fixTor Aamodt
Deadlock fix from stream_manager
2019-11-12Updated the ifdef flag which enables/disables the relevant code blocks for ↵bftf
cuda 10; while assuring backwards compatibility for older cuda versions
2019-11-11Enabled CUDA 10. Added implementations for __cudaPushCallConfiguration and ↵bftf
__cudaPopCallConfiguration, neither of which are documented in the CUDA API but they preceed any cudaLaunchKernel() call and push the call configuration on a stack which is then popped when cudaLaunchKernel() is called. Currently the max stack size is 1, an assert will be triggered when this is violated.
2019-09-13Add missing changes to the libcuda dirNick
2019-09-13stop formatting where there are known problems ahead of timeNick
2019-09-12Remove GPGPUsim_ctx_ptr()Mengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-09-11Remove g_stream_manager()Mengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-09-11Fix init bug in cudaMallocArrayMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-09-08Refactor GPGPUSim_Context and GPGPUSim_InitMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-08-26Merge branch 'dev' into fix_warningsRoland Green
2019-08-26Fix a bunch of outstanding warnings and undefined behaviorNick
2019-08-23fixing cuda 4 errorMahmoud
2019-08-22Merge branch 'dev' of https://github.com/purdue-aalp/gpgpu-sim_distribution ↵Mahmoud
into dev-private
2019-07-26fix indentationboyealkim
2019-07-25fix stream fix bug and fix cudaStreamWaitEvent implboyealkim
2019-07-15Move debug_tensorcoreMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move s_g_pc_to_insnMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move function_info::sm_next_idMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move g_ptx_cta_info_uid and symbol::sm_next_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move g_num_ptx_inst_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move ptx_line_stats_filename and enable_ptx_file_line_statsMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move kernel_info_t::m_next_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-15Move operand_info::sm_next_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-14Move warp_inst_sm_next_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-14Move sm_next_access_uidMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-12fixing device and function parameters configMahmoud
2019-07-12Move g_cdp_enabledMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-11Fix symbolsMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-09Move g_ptx_sim_modeMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-09Move g_global_name_lookup and g_constant_name_lookupMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-09Move g_ptx_kernel_countMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-09Move m_ptx_save_converted_ptxplusMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-08Move opcode_latency_int thus pass gpgpu_context into many classesMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>
2019-07-07g_keep_intermediate_filesMengchi Zhang
Signed-off-by: Mengchi Zhang <[email protected]>