dispatcher.cc (12126:06c1fbaa5724) dispatcher.cc (12680:91f4d6668b4f)
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:

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

42#include "gpu-compute/cl_event.hh"
43#include "gpu-compute/shader.hh"
44#include "gpu-compute/wavefront.hh"
45#include "mem/packet_access.hh"
46
47GpuDispatcher *GpuDispatcher::instance = nullptr;
48
49GpuDispatcher::GpuDispatcher(const Params *p)
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:

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

42#include "gpu-compute/cl_event.hh"
43#include "gpu-compute/shader.hh"
44#include "gpu-compute/wavefront.hh"
45#include "mem/packet_access.hh"
46
47GpuDispatcher *GpuDispatcher::instance = nullptr;
48
49GpuDispatcher::GpuDispatcher(const Params *p)
50 : DmaDevice(p), _masterId(p->system->getMasterId(name() + ".disp")),
50 : DmaDevice(p), _masterId(p->system->getMasterId(this, "disp")),
51 pioAddr(p->pio_addr), pioSize(4096), pioDelay(p->pio_latency),
52 dispatchCount(0), dispatchActive(false), cpu(p->cpu),
53 shader(p->shader_pointer), driver(p->cl_driver),
54 tickEvent([this]{ exec(); }, "GPU Dispatcher tick",
55 false, Event::CPU_Tick_Pri)
56{
57 shader->handshake(this);
58 driver->handshake(this);

--- 333 unchanged lines hidden ---
51 pioAddr(p->pio_addr), pioSize(4096), pioDelay(p->pio_latency),
52 dispatchCount(0), dispatchActive(false), cpu(p->cpu),
53 shader(p->shader_pointer), driver(p->cl_driver),
54 tickEvent([this]{ exec(); }, "GPU Dispatcher tick",
55 false, Event::CPU_Tick_Pri)
56{
57 shader->handshake(this);
58 driver->handshake(this);

--- 333 unchanged lines hidden ---