GNU UPC

... Unified Parallel C

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

How do I specify the value of THREADS (statically) at compile time? How do I specify the value of THREADS (statically) at compile time?


The -fupc-threads-n switch specifies the number of threads to be created. For example, the following command tells the UPC compiler to use a value of 32 for the value of THREADS, when compiling the source file src.upc.

% upc -fupc-threads-32 src.upc

NOTE: The same value of n must be specified for all UPC source files compiled into a given application.

Article is in the following categories:
KB » Usage of GNU UPC



Email This Article

or close

You are here: