Download C* User`s Guide
Transcript
12 C* Users Guide Since C* initializes the CM automatically, ignore the requirement that the Paris routine CM init must be called before making any calls to library routines. 2.4.2 The Graphics and Visualization Library Use the CMSR library to perform graphics operations and to display images of your data. For complete information on the calls in this library, consult the volume Connection Machine Graphic Display System in the Connection Machine documentation set. 2.4.3 The CM 1/0 Library I/O operations on the CM are carried out by making calls to functions in the CMFS library (CMFS stands for CMfile system.) For information on CMFS library calls, consult the CM I/O Svstem Programming Guide. This guide describes how to use these calls to do such things as create files in the CM file system, read and write data between a CM and an I/O device in the Connection Machine system, and, if necessary, transpose serial data so that it is in the proper format for parallel operations. Please note the following, in addition to the information discussed in Section 2.4.1 above: Shapes by default are in news order. (You can specify a different order by using the allocate_detailed shape function.) When using the CMFS transpose_always function to transpose data between serial and parallel format, you must include as the final argument one of the provided functions (CMFSwrite_to_row_major, CMFS_write_to_column_major, CMFS_read_from_rowmajor, or CMFS_read from column_maj or) to make sure that the data is correctly transposed. Do this even if the data is one-dimensional. The choice between row-major and column-major order depends on the way in which the serial data is laid out; note that data in C is laid out in row-major order. If the data is laid out in an order other than column-major or row-major, you must write your own function to correctly rearrange the data. 0