cache

Date:

01-09-2012

NAME

cache - Asserts that all memory operations with the specified symbols as the base are to be allocated in cache.

SYNOPSIS

#pragma _CRI cache base_name [,base_name ...]
!DIR$ CACHE base_name[,base_name ...]base_name[, base_name]
base_name

The base name of the object that should be placed into the cache. This can be the base name of any object such as an array, scalar structure, and so on, without member references like C[10]. If you specify a pointer in the list, only the references, not the pointer itself, are cached.

IMPLEMENTATION

Cray Linux Environment (CLE)

DESCRIPTION

Scope: Declaration

The cache directive is an advisory directive that asserts that all vector loads with the specified symbols as the base are to be allocated in cache. The cache directive is meaningful for stores in that it allows the user to override a decision made by the automatic cache management.

This directive overrides automatic cache management decisions (-h cachen, -O cachen) made on the compiler command line. The cache directive may be locally overridden by the use of a #pragma loop_info directive or LOOP_INFO directive.

To use the directive, you must place it only in the specification part, before any executable statement.

SEE ALSO

craycc(1)

Cray C and C++ Reference Manual

Cray Fortran Reference Manual