lds_state.hh (13784:1941dc118243) lds_state.hh (13892:0182a0601f66)
1/*
2 * Copyright (c) 2014-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:

--- 32 unchanged lines hidden (view full) ---

41#include <queue>
42#include <string>
43#include <unordered_map>
44#include <utility>
45#include <vector>
46
47#include "enums/MemType.hh"
48#include "gpu-compute/misc.hh"
1/*
2 * Copyright (c) 2014-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:

--- 32 unchanged lines hidden (view full) ---

41#include <queue>
42#include <string>
43#include <unordered_map>
44#include <utility>
45#include <vector>
46
47#include "enums/MemType.hh"
48#include "gpu-compute/misc.hh"
49#include "mem/mem_object.hh"
50#include "mem/port.hh"
51#include "params/LdsState.hh"
49#include "mem/port.hh"
50#include "params/LdsState.hh"
51#include "sim/clocked_object.hh"
52
53class ComputeUnit;
54
55/**
56 * this represents a slice of the overall LDS, intended to be associated with an
57 * individual workgroup
58 */
59class LdsChunk

--- 43 unchanged lines hidden (view full) ---

103
104 protected:
105 // the actual data store for this slice of the LDS
106 std::vector<uint8_t> chunk;
107};
108
109// Local Data Share (LDS) State per Wavefront (contents of the LDS region
110// allocated to the WorkGroup of this Wavefront)
52
53class ComputeUnit;
54
55/**
56 * this represents a slice of the overall LDS, intended to be associated with an
57 * individual workgroup
58 */
59class LdsChunk

--- 43 unchanged lines hidden (view full) ---

103
104 protected:
105 // the actual data store for this slice of the LDS
106 std::vector<uint8_t> chunk;
107};
108
109// Local Data Share (LDS) State per Wavefront (contents of the LDS region
110// allocated to the WorkGroup of this Wavefront)
111class LdsState: public MemObject
111class LdsState: public ClockedObject
112{
113 protected:
114
115 /**
116 * an event to allow event-driven execution
117 */
118 class TickEvent: public Event
119 {

--- 390 unchanged lines hidden ---
112{
113 protected:
114
115 /**
116 * an event to allow event-driven execution
117 */
118 class TickEvent: public Event
119 {

--- 390 unchanged lines hidden ---