GPU.py (13665:9c7fe3811b88) | GPU.py (13892:0182a0601f66) |
---|---|
1# 2# Copyright (c) 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: --- 26 unchanged lines hidden (view full) --- 35 36from m5.defines import buildEnv 37from m5.params import * 38from m5.proxy import * 39from m5.SimObject import SimObject 40 41from m5.objects.ClockedObject import ClockedObject 42from m5.objects.Device import DmaDevice | 1# 2# Copyright (c) 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: --- 26 unchanged lines hidden (view full) --- 35 36from m5.defines import buildEnv 37from m5.params import * 38from m5.proxy import * 39from m5.SimObject import SimObject 40 41from m5.objects.ClockedObject import ClockedObject 42from m5.objects.Device import DmaDevice |
43from m5.objects.MemObject import MemObject | |
44from m5.objects.Process import EmulatedDriver 45from m5.objects.Bridge import Bridge 46from m5.objects.LdsState import LdsState 47 48class PrefetchType(Enum): vals = [ 49 'PF_CU', 50 'PF_PHASE', 51 'PF_WF', --- 15 unchanged lines hidden (view full) --- 67 type = 'Wavefront' 68 cxx_class = 'Wavefront' 69 cxx_header = 'gpu-compute/wavefront.hh' 70 71 simdId = Param.Int('SIMD id (0-ComputeUnit.num_SIMDs)') 72 wf_slot_id = Param.Int('wavefront id (0-ComputeUnit.max_wfs)') 73 wfSize = Param.Int(64, 'Wavefront size (in work items)') 74 | 43from m5.objects.Process import EmulatedDriver 44from m5.objects.Bridge import Bridge 45from m5.objects.LdsState import LdsState 46 47class PrefetchType(Enum): vals = [ 48 'PF_CU', 49 'PF_PHASE', 50 'PF_WF', --- 15 unchanged lines hidden (view full) --- 66 type = 'Wavefront' 67 cxx_class = 'Wavefront' 68 cxx_header = 'gpu-compute/wavefront.hh' 69 70 simdId = Param.Int('SIMD id (0-ComputeUnit.num_SIMDs)') 71 wf_slot_id = Param.Int('wavefront id (0-ComputeUnit.max_wfs)') 72 wfSize = Param.Int(64, 'Wavefront size (in work items)') 73 |
75class ComputeUnit(MemObject): | 74class ComputeUnit(ClockedObject): |
76 type = 'ComputeUnit' 77 cxx_class = 'ComputeUnit' 78 cxx_header = 'gpu-compute/compute_unit.hh' 79 80 wavefronts = VectorParam.Wavefront('Number of wavefronts') 81 wfSize = Param.Int(64, 'Wavefront size (in work items)') 82 num_SIMDs = Param.Int(4, 'number of SIMD units per CU') 83 --- 124 unchanged lines hidden --- | 75 type = 'ComputeUnit' 76 cxx_class = 'ComputeUnit' 77 cxx_header = 'gpu-compute/compute_unit.hh' 78 79 wavefronts = VectorParam.Wavefront('Number of wavefronts') 80 wfSize = Param.Int(64, 'Wavefront size (in work items)') 81 num_SIMDs = Param.Int(4, 'number of SIMD units per CU') 82 --- 124 unchanged lines hidden --- |