Project

General

Profile

Bug #24780

configuring FP exceptions --> non-FP exception

Added by Pavel Murat about 1 month ago. Updated about 1 month ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Documentation
Target version:
-
Start date:
08/13/2020
Due date:
% Done:

100%

Estimated time:
Occurs In:
Scope:
Internal
Experiment:
Mu2e
SSI Package:
Duration:

Description

Dear art developers,

An attempt to follow instructions at https://cdcvs.fnal.gov/redmine/projects/art/wiki/FloatingPointControl
and enable the art FP exception handling results, as shown below, in a friendly non-FP exception.

The behavior doesn't seem to be art version-dependent and is the same for v3_05_01 and v3_06_02.

-- is is possible that I misread the instructions ? -- thanks, Pasha

murat@mu2e01:/data/murat/mu2e_dev>which art
/cvmfs/mu2e.opensciencegrid.org/artexternals/art/v3_06_02/slf7.x86_64.e19.prof/bin/art
murat@mu2e01:/data/murat/mu2e_dev>cat a.fcl
# -*- mode: tcl -*-
services.floating_point_control: {
    # required syntax to apply settings to all modules
    reportSettings : true

    moduleNames: [ default ]
    default: {
        # cause exceptions for divide-by-zero
        enableDivByZeroEx : true
        enableInvalidEx   : true
        enableOverFlowEx  : true
        enableUnderFlowEx : true
    }
}
murat@mu2e01:/data/murat/mu2e_dev>mu2e -c a.fcl
INFO: using default process_name of "DUMMY".
%MSG-i MF_INIT_OK:  Early 13-Aug-2020 15:58:31 CDT JobSetup
Messagelogger initialization complete.
%MSG
%MSG-s ArtException:  Early 13-Aug-2020 15:58:31 CDT JobSetup
cet::exception caught in art
---- LogicError BEGIN
  IllegalUnderscore. Library specification "floating_point_control" contains an illegal underscore.
  The class name and path to it may not contain an underscore. If this is a configuration error, plase correct it; if the module's class name or its location within its enclosing package really do have an underscore this situation must be rectified.
---- LogicError END
%MSG
Art has completed and will exit with status 65.

History

#1 Updated by Kyle Knoepfel about 1 month ago

  • Assignee set to Kyle Knoepfel
  • Status changed from New to Resolved

Our apologies. The page has been updated with the allowed configuration. In general, the configuration description system will be up-to-date, whereas Wiki information always runs the risk of being obsolete.

To determine available services

knoepfel@scisoftbuild01 ~ $ art --print-available-services
Expected environment variable FHICL_FILE_PATH is missing or empty: using "." 

======================================================================================================================
    Service                  Provider    Source location
----------------------------------------------------------------------------------------------------------------------
 1. DatabaseConnection       art         / [ external source ] /DatabaseConnection_service.cc
 2. FileCatalogMetadata      art         / [ external source ] /FileCatalogMetadata_service.cc
 3. FloatingPointControl     art         / [ external source ] /FloatingPointControl_service.cc
 4. MemoryTracker            art         / [ external source ] /MemoryTracker_service.cc
 5. RandomNumberGenerator    art         / [ external source ] /RandomNumberGenerator_service.cc
 6. TimeTracker              art         / [ external source ] /TimeTracker_service.cc
 7. Tracer                   art         / [ external source ] /Tracer_service.cc
 8. TrivialFileDelivery      art         / [ external source ] /TrivialFileDelivery_service.cc
 9. TrivialFileTransfer      art         / [ external source ] /TrivialFileTransfer_service.cc
10. message                  art         [ See https://cdcvs.fnal.gov/redmine/projects/art/wiki/Messagefacility ]
11. scheduler                art         [ none ]
======================================================================================================================

To determine allowed configuration for a service

knoepfel@scisoftbuild01 ~ $ art --print-description FloatingPointControl 
Expected environment variable FHICL_FILE_PATH is missing or empty: using "." 

====================================================================================================

    service : FloatingPointControl

        provider: art
        source  : / [ external source ] /FloatingPointControl_service.cc
        library : /products/art/v3_06_00/slf7.x86_64.e19.prof/lib/libart_Framework_Services_System_FloatingPointControl_service.so

    Allowed configuration
    ---------------------

        ## Any parameters prefaced with '#' are optional.

        FloatingPointControl: {

           enableDivByZeroEx: false  # default

           enableInvalidEx: false  # default

           enableOverFlowEx: false  # default

           enableUnderFlowEx: false  # default

           setPrecisionDouble: true  # default

           reportSettings: false  # default
        }

====================================================================================================

#2 Updated by Kyle Knoepfel about 1 month ago

  • % Done changed from 0 to 100
  • Category set to Documentation

#3 Updated by Kyle Knoepfel about 1 month ago

  • Status changed from Resolved to Closed


Also available in: Atom PDF