Beispiel #1
0
      void FPGAConfig::apply()
      {
         verbose0( "Initializing FPGA support component" );

         if ( _disableFPGA ) {
            _numAccelerators = 0; //system won't instanciate accelerators if count=0
         } else if ( _numAccelerators < 0 ) {
            /* if not given, assume we are using one accelerator
             * We should get the number of accelerators on the system
             * and use it as a default
             */
            _numAccelerators = 1;
         } else if ( _numAccelerators == 0 ) {
             _disableFPGA = true;
         }

         if (_numAccelerators > _maxAccelerators) {
             warning0( "The number of accelerators is greater then the accelerators in the system. Using "
                     << _maxAccelerators << " accelerators" );
             _numAccelerators = _maxAccelerators;
         }

         if ( _numFPGAThreads < 0 ) {
            warning0( "Number of fpga threads cannot be negative. Using one thread per accelerator" );
            _numFPGAThreads = _numAccelerators;
         } else if ( _numFPGAThreads > _numAccelerators ) {
            warning0( "Number of helper is greater than the number of accelerators. Using one thread per accelerator" );
            _numFPGAThreads = _numAccelerators;
         }
         _idleSyncBurst = ( _idleSyncBurst < 0 ) ? _burst : _idleSyncBurst;

      }
Beispiel #2
0
void Wsuppl_longOption(void)
{
	warning0(E_longOption);

}
Beispiel #3
0
void Wsuppl_creatTmpFnam(void)
{
	warning0(E_creatTmpFnam);

}