1/* 2 * Copyright (c) 2015-2017 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: --- 25 unchanged lines hidden (view full) --- 34 */ 35 36#ifndef __GPU_DYN_INST_HH__ 37#define __GPU_DYN_INST_HH__ 38 39#include <cstdint> 40#include <string> 41 |
42#include "base/logging.hh" |
43#include "enums/MemType.hh" 44#include "enums/StorageClassType.hh" 45#include "gpu-compute/compute_unit.hh" 46#include "gpu-compute/gpu_exec_context.hh" 47 48class GPUStaticInst; 49 50template<typename T> --- 352 unchanged lines hidden (view full) --- 403 req->setMemSpaceConfigFlags(Request::SPILL_SEGMENT); 404 } else if (isGlobalSeg()) { 405 req->setMemSpaceConfigFlags(Request::GLOBAL_SEGMENT); 406 } else if (isReadOnlySeg()) { 407 req->setMemSpaceConfigFlags(Request::READONLY_SEGMENT); 408 } else if (isGroupSeg()) { 409 req->setMemSpaceConfigFlags(Request::GROUP_SEGMENT); 410 } else if (isFlat()) { |
411 panic("TODO: translate to correct scope"); |
412 } else { 413 fatal("%s has bad segment type\n", disassemble()); 414 } 415 416 if (isWavefrontScope()) { 417 req->setMemSpaceConfigFlags(Request::SCOPE_VALID | 418 Request::WAVEFRONT_SCOPE); 419 } else if (isWorkgroupScope()) { --- 52 unchanged lines hidden --- |