decl.hh (11325:67cc559d513a) decl.hh (11639:2e8d4bd8108d)
1/*
2 * Copyright (c) 2012-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:

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

955 // etc.). We send a packet, tagged with the memory order and
956 // scope, and let the GPU coalescer handle it.
957
958 if (o_type == Enums::OT_GLOBAL_MEMFENCE ||
959 o_type == Enums::OT_BOTH_MEMFENCE) {
960 gpuDynInst->simdId = w->simdId;
961 gpuDynInst->wfSlotId = w->wfSlotId;
962 gpuDynInst->wfDynId = w->wfDynId;
1/*
2 * Copyright (c) 2012-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:

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

955 // etc.). We send a packet, tagged with the memory order and
956 // scope, and let the GPU coalescer handle it.
957
958 if (o_type == Enums::OT_GLOBAL_MEMFENCE ||
959 o_type == Enums::OT_BOTH_MEMFENCE) {
960 gpuDynInst->simdId = w->simdId;
961 gpuDynInst->wfSlotId = w->wfSlotId;
962 gpuDynInst->wfDynId = w->wfDynId;
963 gpuDynInst->kern_id = w->kern_id;
963 gpuDynInst->kern_id = w->kernId;
964 gpuDynInst->cu_id = w->computeUnit->cu_id;
965
966 gpuDynInst->memoryOrder =
967 getGenericMemoryOrder(memFenceMemOrder);
968 gpuDynInst->scope =
969 getGenericMemoryScope(memFenceScopeSegGlobal);
970 gpuDynInst->useContinuation = false;
971 GlobalMemPipeline* gmp = &(w->computeUnit->globalMemoryPipe);
972 gmp->getGMReqFIFO().push(gpuDynInst);
973
964 gpuDynInst->cu_id = w->computeUnit->cu_id;
965
966 gpuDynInst->memoryOrder =
967 getGenericMemoryOrder(memFenceMemOrder);
968 gpuDynInst->scope =
969 getGenericMemoryScope(memFenceScopeSegGlobal);
970 gpuDynInst->useContinuation = false;
971 GlobalMemPipeline* gmp = &(w->computeUnit->globalMemoryPipe);
972 gmp->getGMReqFIFO().push(gpuDynInst);
973
974 w->wr_gm_reqs_in_pipe--;
975 w->rd_gm_reqs_in_pipe--;
976 w->mem_reqs_in_pipe--;
977 w->outstanding_reqs++;
974 w->wrGmReqsInPipe--;
975 w->rdGmReqsInPipe--;
976 w->memReqsInPipe--;
977 w->outstandingReqs++;
978 } else if (o_type == Enums::OT_SHARED_MEMFENCE) {
979 // no-op
980 } else {
981 fatal("MemFence execute: bad o_type\n");
982 }
983 }
984 };
985

--- 121 unchanged lines hidden ---
978 } else if (o_type == Enums::OT_SHARED_MEMFENCE) {
979 // no-op
980 } else {
981 fatal("MemFence execute: bad o_type\n");
982 }
983 }
984 };
985

--- 121 unchanged lines hidden ---