wavefront.cc (11644:d426728892fe) | wavefront.cc (11657:5fad5a37d6fc) |
---|---|
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: --- 1052 unchanged lines hidden (view full) --- 1061 } 1062 /** Restoring LDS contents */ 1063 if (ldsChunk) 1064 for (int i = 0; i < ldsChunk->size(); i++) { 1065 char val = *(char *) iter; iter += sizeof(val); 1066 ldsChunk->write<char>(i, val); 1067 } 1068} | 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: --- 1052 unchanged lines hidden (view full) --- 1061 } 1062 /** Restoring LDS contents */ 1063 if (ldsChunk) 1064 for (int i = 0; i < ldsChunk->size(); i++) { 1065 char val = *(char *) iter; iter += sizeof(val); 1066 ldsChunk->write<char>(i, val); 1067 } 1068} |
1069 1070void 1071Wavefront::computeActualWgSz(NDRange *ndr) 1072{ 1073 actualWgSzTotal = 1; 1074 for (int d = 0; d < 3; ++d) { 1075 actualWgSz[d] = std::min(workGroupSz[d], 1076 gridSz[d] - ndr->wgId[d] * workGroupSz[d]); 1077 actualWgSzTotal *= actualWgSz[d]; 1078 } 1079} |
|