dispatcher.cc (11534:7106f550afad) dispatcher.cc (11639:2e8d4bd8108d)
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:

--- 291 unchanged lines hidden (view full) ---

300 DPRINTF(GPUDisp, "WorkGroup %d completed\n", doneIds.front());
301 doneIds.pop();
302 }
303}
304
305void
306GpuDispatcher::notifyWgCompl(Wavefront *w)
307{
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:

--- 291 unchanged lines hidden (view full) ---

300 DPRINTF(GPUDisp, "WorkGroup %d completed\n", doneIds.front());
301 doneIds.pop();
302 }
303}
304
305void
306GpuDispatcher::notifyWgCompl(Wavefront *w)
307{
308 int kern_id = w->kern_id;
308 int kern_id = w->kernId;
309 DPRINTF(GPUDisp, "notify WgCompl %d\n",kern_id);
310 assert(ndRangeMap[kern_id].dispatchId == kern_id);
311 ndRangeMap[kern_id].numWgCompleted++;
312
313 if (ndRangeMap[kern_id].numWgCompleted == ndRangeMap[kern_id].numWgTotal) {
314 ndRangeMap[kern_id].execDone = true;
315 doneIds.push(kern_id);
316

--- 84 unchanged lines hidden ---
309 DPRINTF(GPUDisp, "notify WgCompl %d\n",kern_id);
310 assert(ndRangeMap[kern_id].dispatchId == kern_id);
311 ndRangeMap[kern_id].numWgCompleted++;
312
313 if (ndRangeMap[kern_id].numWgCompleted == ndRangeMap[kern_id].numWgTotal) {
314 ndRangeMap[kern_id].execDone = true;
315 doneIds.push(kern_id);
316

--- 84 unchanged lines hidden ---