summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
AgeCommit message (Collapse)Author
2018-06-30changing the flow s.t. you cannot compile the simulator with a different ↵tgrogers
version of CUDA from the app.
2018-06-29Fixing the PTXPLUS + new CUDA execution case.tgrogers
2018-06-29Allowing modern GPU configrations to properly run PTXPLUS.tgrogers
There are several problems with this: 1) To get proper occupancy, based on register file usage, you must querry ptxas with the sm version that corresponds to the register usage in the config file. To enable this, a new config option has been added that determines what sm version you pass to ptxas to compute reg-usage. This configuration option is always required in the gpgpusim.config file 2) If you are running PTXPLUS with a modern card (i.e. volta/pascal), you need ptxas from CUDA 9.1. However since PTXPLUS only supports sm_13 - you need a version of CUDA where cudaobjectdump supports sm_1x. This ended at CUDA 5 - and PTXPLUS requires CUDA 4.2. Therefore, to run PTXPLUS on a modern card, you need CUDA 4.2 + modern CUDA installed. To fascilitate this, a new envronment varaible is added and the setup envrionment script prints an appropraite warning if you are using a newer CUDA. We have tried to make this as fail-proof as possible - and die appropraitely when something is wrong.
2018-06-29Whitespace edits - removing tabs - replacing with spacestgrogers
2018-06-29Adding a print to indicate which PTX version we are actually usingtgrogers
2018-03-28(attempt to) fix compile error in last checkinTor Aamodt
2018-03-28fix compile errors on Ubuntu LTS 16.04Tor Aamodt
2017-05-09Merge branch 'dev' into devTim Rogers
2016-10-28support for CUDA 8.0 PTXAhmed ElTantawy
2016-09-05Merge pull request #28 from jwang323/cdp_cleangpgpu-sim
Initial support of CUDA Dynamic Parallelism on GPGPUSim
2016-07-06ADD: add knob to enable CDP in gpgpusim configJin Wang
2016-07-05BUG: PTX section id. ADD: cudaDeviceSetLimit. BUG: parameter addresses for ↵Jin Wang
child kernels in CDP. BUG: .weak .entry and .weak .global directives in ptx file. BUG: empty_protected() for stream manager causes deadlock, change to empty()
2016-07-05ADD: handle child kernel name in mov instruction. ADD: detect call ↵Jin Wang
cudaGetParameterBufferV2 and call cudaLaunchDeviceV2
2016-07-05MOD: Hack warning for cuda device runtime lib function registrationJin Wang
2016-07-05BUG: cuobjdump for sm_35 with CDPJin Wang
2016-07-05MOD: add support for cuda65 ptx headerJin Wang
2016-06-10Vastly improved runtime by relating symbol tables to file namessspenst
2016-06-09Merge branch 'dev' of https://github.com/sspenst/gpgpu-sim_distribution into devspeverel
2016-06-09Modified runtime API to support synchronization with the null stream.speverel
2016-06-09Forgot to add a return valuesspenst
2016-06-09Added a basic implementation of cudaStreamCreateWithFlagssspenst
2016-06-07Updated the PTX section merging to be able to deal with multiple identifierssspenst
2016-06-07Added support for cudaMemcpyDefault flag in cudaMemcpy. Also increased the ↵speverel
maximum allowable memory to 2GB and the compute version to 5.2.
2016-06-03Added mergeSectionList to combine any PTX files that remain after pruning ↵sspenst
into a single file.
2016-06-02Added handling of .cc option for arithmetic instructions. NOTE: Only made ↵speverel
changes to parse instructions. Carry functionality NOT fully implemented; .cc instructions function like their unmodified ueqivelents. Also modified GTX750Ti config to model L1 data cache as simply not being used for global loads (instead of not existing at all). Changed ptxinfo parsing to avoid crashing when info includes texture information.
2016-05-13changed the SM version flag for generating ptxinfo to be dynamic instead of 20sspenst
2016-05-13remove the hackish comment and assign a default identifier for CUDA>=7.5Ahmed ElTantawy
2016-05-13detailed error message when minimum found ptx capability is still larger ↵Ahmed ElTantawy
than the maximum forced capability
2016-05-12added an assertion to pruneSectionListsspenst
2016-05-12Commented out line that checks for identifier in PTX file so that sim runs ↵speverel
in 7.5
2015-03-04initial support for CUDA 5.0, 5.5, 6.0 to get template from SDK runningAhmed ElTantawy
2014-08-14Removing a slew of code still compiled with gcc and the need for a bunch of ↵Tim Rogers
external C linkage [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15912]
2014-08-14define the cudaFuncSetCacheConfig for CUDART_VERSION >= 3000Ahmed El-Shafiey
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15818]
2014-08-14 - Adding support for cudaFuncSetCacheConfig API, that allows changing theAhmed El-Shafiey
L1 Cache and Shared Memory configurations across kernels. The support enable the user to specify two more configurations (Preferred L1) or (Preferred Shared Memory) besides the default config. If the cudaFuncSetCacheConfig API is used to set the cache configuration of a specific kernel to either of these configuration (cudaFuncCachePreferShared, cudaFuncCachePreferL1), the simulator will change the cache configuration at kernel launch accordingly, if there is no alternative configurations provided to the simulator it will use the default configurations with a warning message display [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15816]
2014-08-14 Fixing a slew of compiler warningsTim Rogers
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218]
2014-08-14enable CUBIN parsing on Mac OS XTor Aamodt
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14882]
2014-08-14Modified cuobjdump-based PTX/SASS extraction (CUDA 4.0 and newer) to support ↵Wilson Fung
valgrind. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14837]
2014-08-14Remove memory leak in cudaSetupArgument()Wilson Fung
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14564]
2014-08-14Adding support for cudaReadModeNormalizedFloat (a texture read mode). See ↵Wilson Fung
bug 18 (external) for detail. The blocked SDK benchmarks are still not working due to mismatch of texture element layout in memory between real GPU and GPGPU-Sim. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13933]
2014-08-14Fix compilation error with CUDA 2.3.Wilson Fung
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13868]
2014-08-14Allowing cuobjdump on the executable to return error when experimental ↵Wilson Fung
library support is enabled. This fixes the crash for applications that exclusively use kernels from CUDA libraries and do not contain kernels in their own executables. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13867]
2014-08-14Fixing the case where cuobjdump is not used for on demand loading of binariesAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13795]
2014-08-14Fixing build fail on JenkinsAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13794]
2014-08-14On demand loading of fatbinsAndrew M. B. Boktor
Experimental library support (diff abstract_hardware_model.cc) (currently broken because of undocumented cudaGetExportTable function in the cuda rt api) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13793]
2014-08-14 Integration from TM-311 branch.Wilson Fung
- Updated PTX parser to support CUDA 4.1 and 4.2. - Revised fatbin workaround to a more robust version (with comments explaining it). - Added print_simulation_time() in gpgpu_sim_thread_concurrent(). [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13789]
2014-08-14Extended andrew's fatbin hack to support CUDA 4.1 and 4.2 as well.Wilson Fung
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13744]
2014-08-14Fixing the build for CL 13728 for older gccAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13730]
2014-08-14Adding a less brittle support for associating the fatbins to sections in the ↵Andrew M. B. Boktor
output of cuobjdump This is how to get to the filename given a fatCubin void* void * s1 = *((void**)(fatCubin+8)); void * s2 = (s1+72); char * filename = (char *)s2; [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13728]
2014-08-14Fixing bug #7 on gpgpu-sim.orgAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13705]
2014-08-14Back out changelist 13683Andrew M. B. Boktor
There is a problem with the linkage on my machine. Before this changelist the code didn't build on my machine. After it it builds but fails to run due to missing dynamic linkage. And obviously it breaks the jenkins build. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13684]