apu_se.py (11308:7d8836fd043d) | apu_se.py (11534:7106f550afad) |
---|---|
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: --- 236 unchanged lines hidden (view full) --- 245 localDataStore = \ 246 LdsState(banks = options.numLdsBanks, 247 bankConflictPenalty = \ 248 options.ldsBankConflictPenalty))) 249 wavefronts = [] 250 vrfs = [] 251 for j in xrange(options.simds_per_cu): 252 for k in xrange(shader.n_wf): | 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: --- 236 unchanged lines hidden (view full) --- 245 localDataStore = \ 246 LdsState(banks = options.numLdsBanks, 247 bankConflictPenalty = \ 248 options.ldsBankConflictPenalty))) 249 wavefronts = [] 250 vrfs = [] 251 for j in xrange(options.simds_per_cu): 252 for k in xrange(shader.n_wf): |
253 wavefronts.append(Wavefront(simdId = j, wf_slot_id = k)) | 253 wavefronts.append(Wavefront(simdId = j, wf_slot_id = k, 254 wfSize = options.wf_size)) |
254 vrfs.append(VectorRegisterFile(simd_id=j, 255 num_regs_per_simd=options.vreg_file_size)) 256 compute_units[-1].wavefronts = wavefronts 257 compute_units[-1].vector_register_file = vrfs 258 if options.TLB_prefetch: 259 compute_units[-1].prefetch_depth = options.TLB_prefetch 260 compute_units[-1].prefetch_prev_type = options.pf_type 261 --- 238 unchanged lines hidden --- | 255 vrfs.append(VectorRegisterFile(simd_id=j, 256 num_regs_per_simd=options.vreg_file_size)) 257 compute_units[-1].wavefronts = wavefronts 258 compute_units[-1].vector_register_file = vrfs 259 if options.TLB_prefetch: 260 compute_units[-1].prefetch_depth = options.TLB_prefetch 261 compute_units[-1].prefetch_prev_type = options.pf_type 262 --- 238 unchanged lines hidden --- |