compute_unit.hh (11695:0a65922d564d) | compute_unit.hh (11698:d1ad31187fa5) |
---|---|
1/* 2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 376 unchanged lines hidden (view full) --- 385 getLds() const 386 { 387 return lds; 388 } 389 390 int32_t 391 getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const; 392 | 1/* 2 * Copyright (c) 2011-2015 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * For use for simulation and test purposes only 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are met: --- 376 unchanged lines hidden (view full) --- 385 getLds() const 386 { 387 return lds; 388 } 389 390 int32_t 391 getRefCounter(const uint32_t dispatchId, const uint32_t wgId) const; 392 |
393 int cacheLineSize() const { return _cacheLineSize; } 394 |
|
393 bool 394 sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result)); 395 396 typedef std::unordered_map<Addr, std::pair<int, int>> pageDataStruct; 397 pageDataStruct pageAccesses; 398 399 class CUExitCallback : public Callback 400 { --- 361 unchanged lines hidden (view full) --- 762 public: 763 std::list<waveIdentifier> waveIDQueue; 764 }; 765 std::map<unsigned, waveQueue> xactCasLoadMap; 766 767 uint64_t getAndIncSeqNum() { return globalSeqNum++; } 768 769 private: | 395 bool 396 sendToLds(GPUDynInstPtr gpuDynInst) __attribute__((warn_unused_result)); 397 398 typedef std::unordered_map<Addr, std::pair<int, int>> pageDataStruct; 399 pageDataStruct pageAccesses; 400 401 class CUExitCallback : public Callback 402 { --- 361 unchanged lines hidden (view full) --- 764 public: 765 std::list<waveIdentifier> waveIDQueue; 766 }; 767 std::map<unsigned, waveQueue> xactCasLoadMap; 768 769 uint64_t getAndIncSeqNum() { return globalSeqNum++; } 770 771 private: |
772 const int _cacheLineSize; |
|
770 uint64_t globalSeqNum; 771 int wavefrontSize; 772 GPUStaticInst *kernelLaunchInst; 773}; 774 775#endif // __COMPUTE_UNIT_HH__ | 773 uint64_t globalSeqNum; 774 int wavefrontSize; 775 GPUStaticInst *kernelLaunchInst; 776}; 777 778#endif // __COMPUTE_UNIT_HH__ |