wavefront.cc (11641:a9f0711e7230) | wavefront.cc (11643:42a1873be45c) |
---|---|
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: --- 921 unchanged lines hidden (view full) --- 930Wavefront::pc(uint32_t new_pc) 931{ 932 reconvergenceStack.back()->pc = new_pc; 933} 934 935uint32_t 936Wavefront::getStaticContextSize() const 937{ | 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: --- 921 unchanged lines hidden (view full) --- 930Wavefront::pc(uint32_t new_pc) 931{ 932 reconvergenceStack.back()->pc = new_pc; 933} 934 935uint32_t 936Wavefront::getStaticContextSize() const 937{ |
938 return barCnt.size() * sizeof(int) + sizeof(dynWaveId) + sizeof(maxBarCnt) + | 938 return barCnt.size() * sizeof(int) + sizeof(wfId) + sizeof(maxBarCnt) + |
939 sizeof(oldBarrierCnt) + sizeof(barrierCnt) + sizeof(wgId) + 940 sizeof(computeUnit->cu_id) + sizeof(barrierId) + sizeof(initMask) + 941 sizeof(privBase) + sizeof(spillBase) + sizeof(ldsChunk) + 942 computeUnit->wfSize() * sizeof(ReconvergenceStackEntry); 943} | 939 sizeof(oldBarrierCnt) + sizeof(barrierCnt) + sizeof(wgId) + 940 sizeof(computeUnit->cu_id) + sizeof(barrierId) + sizeof(initMask) + 941 sizeof(privBase) + sizeof(spillBase) + sizeof(ldsChunk) + 942 computeUnit->wfSize() * sizeof(ReconvergenceStackEntry); 943} |