summaryrefslogtreecommitdiff
path: root/libcuda/cuda_runtime_api.cc
AgeCommit message (Collapse)Author
2016-07-11Reverted the previous commit to add a cleaner way of getting NUM_THREADS. ↵sspenst
Now, sst_impl doesn't functionally execute on the last indexed element of an array, but instead on the actual last thread that executes
2016-07-08Made gridDim and blockDim global variables so that they can be accessed from ↵sspenst
sst_impl
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]
2014-08-14Removing compiler warningsAndrew M. B. Boktor
Fixing failed compilation due to double definition of parsing functions [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13683]
2014-08-14Remove -gpgpu_ptx_use_cuobjdump from configs. Update error reporting to be ↵Tor Aamodt
more helpful. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12654]
2014-08-14Catching the problem where the embedded ptx cannot be found because the ↵Andrew M. B. Boktor
benchmark is compiled with CUDA4 and cuobjdump is not enabled [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12653]
2014-08-14Re-wrote the intermediate structure for the output of cuobjdump using C++ ↵Andrew M. B. Boktor
classes Some changes to remove warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12609]
2014-08-14Removing a couple of warningsAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12564]
2014-08-14Fixing a small bugAndrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12523]
2014-08-14Reworking the mechanism that selects which sm versino to run.Andrew M. B. Boktor
Now, the highest sm version below forced_max_capability is selected for each cu file individually [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12516]
2014-08-14Supporting the option for removing temporary filesAndrew M. B. Boktor
. the option -gpgpu_ptx_save_converted_ptxplus allows keeping the ptxplus file . the option -gpgpu_keep allows keeping intermediate files used to communicate with other programs (e.g. cuobjdump) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12304]
2014-08-14Handling the case where force_max_capability is set to 0 (means no restriction)Andrew M. B. Boktor
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12280]
2014-08-141. Fixing ptx with sm_20Andrew M. B. Boktor
2. Fixing the choice of files (since new we can choose) 3. Not allowing sm_20 with PTXPlus, forcing max capability it to 19 and printing a warning [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12279]
2014-08-14Removing all remaining traced of decudaAndrew M. B. Boktor
Stopping if someone tries to use PTXPlus without cuobjdump [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12138]
2014-08-14This changelist implements the following:Andrew M. B. Boktor
1. Adds support for using cuobjdump for both ptx and ptxplus execution. This has been tested with CUDA 4.0 . Ptxplus is no longer supported through decuda/decuda_to_ptxplus 2. Adds support for converting the SASS output by cuobjdump to ptxplus. This has been tested with CUDA 4.0 . The old path that extracts ptx from cubin files is still preserved 3. Adds a bank group model. (WARNING: memory config has changed, please adapt yours). To disable the bank groups model, set nbkgrp to 1 and tCCDL and tRTPL to 0 Diff the configuration files to learn about how to use those new options. Merging //depot/gpgpu_sim_research/fermi-test/distribution/... to //depot/gpgpu_sim_research/fermi/distribution/... [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 12023]
2014-08-14The simulator stops and outputs a message if it cannot find a cubin file ↵Andrew M. B. Boktor
while trying to convert to ptxplus [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10869]
2014-08-14Assigned debug level 3 to stream manager output.Inderpreet Singh
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 10013]