67 lines
2.3 KiB
C
67 lines
2.3 KiB
C
//***************************************************************************************
|
|
// Administrative routines.
|
|
//***************************************************************************************
|
|
//
|
|
// Author: Rob F. Van der Wijngaart
|
|
// Intel Corporation
|
|
// Date: 008/30/2010
|
|
//
|
|
//***************************************************************************************
|
|
//
|
|
//
|
|
// Copyright 2010 Intel Corporation
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
// [2010-10-25] added support for non-blocking send/recv operations
|
|
// - iRCCE_isend(), ..._test(), ..._wait(), ..._push()
|
|
// - iRCCE_irecv(), ..._test(), ..._wait(), ..._push()
|
|
// by Carsten Clauss, Chair for Operating Systems,
|
|
// RWTH Aachen University
|
|
//
|
|
// [2010-11-12] extracted non-blocking code into separate library
|
|
// by Carsten Scholtes
|
|
//
|
|
// [2011-02-21] added support for multiple incoming queues
|
|
// (one recv queue per remote rank)
|
|
//
|
|
|
|
#include <metalsvm/stddef.h>
|
|
|
|
#ifdef CONFIG_ROCKCREEK
|
|
|
|
#include <asm/iRCCE_lib.h>
|
|
|
|
// send request queue
|
|
iRCCE_SEND_REQUEST* iRCCE_isend_queue;
|
|
// recv request queue
|
|
iRCCE_RECV_REQUEST* iRCCE_irecv_queue[RCCE_MAXNP];
|
|
|
|
//--------------------------------------------------------------------------------------
|
|
// FUNCTION: iRCCE_init
|
|
//--------------------------------------------------------------------------------------
|
|
// initialize the library
|
|
//--------------------------------------------------------------------------------------
|
|
int iRCCE_init(void) {
|
|
int i;
|
|
|
|
for(i=0; i<RCCE_MAXNP; i++) {
|
|
iRCCE_irecv_queue[i] = NULL;
|
|
}
|
|
|
|
iRCCE_isend_queue = NULL;
|
|
|
|
return (iRCCE_SUCCESS);
|
|
}
|
|
|
|
#endif
|