<commit_before>/*
 $Id$
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include <omp.h>
#include <offload.h>

#define DEBUG_ 1
#define DEBUG2_ 1
#define DBG_NUM_DEVS 2
#ifndef DEFAULT_OFFLOAD_THREAD_MULTIPLIER
#define DEFAULT_OFFLOAD_THREAD_MULTIPLIER 4
#endif
#ifndef RANKS_PER_DEVICE
#define RANKS_PER_DEVICE 2
#endif
#define BUFSZ 256
#define MAXGETHOSTNAME 2048
#include <mpi.h>
#include "ga.h"
#include "macdecls.h"
#include "typesf2c.h"

static short int mic_get_num_initialized=0;
static int num_mic_devs;

extern int util_cgetppn();
extern int util_my_smp_index();
extern int util_my_smp_master();

/* NWC_RANKS_PER_DEVICE values 
   positive : number of ranks/device to use
   0        : use only CPUS, do not use MIC
   negative : undefined, use predefined RANKS_PER_DEVICE */
int util_getenv_nwc_ranks_per_device_() {
	int ret = -1;
	const char *name = "NWC_RANKS_PER_DEVICE";
	char *value;
	value = getenv(name);<commit_msg>ranks/device changed from 2 to 1. Value of 2 doubles memory usage (and hits MPOSS bugs) but does not help with performance<commit_after>/*
 $Id$
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include <omp.h>
#include <offload.h>

#define DEBUG_ 1
#define DEBUG2_ 1
#define DBG_NUM_DEVS 2
#ifndef DEFAULT_OFFLOAD_THREAD_MULTIPLIER
#define DEFAULT_OFFLOAD_THREAD_MULTIPLIER 4
#endif
#ifndef RANKS_PER_DEVICE
#define RANKS_PER_DEVICE 1
#endif
#define BUFSZ 256
#define MAXGETHOSTNAME 2048
#include <mpi.h>
#include "ga.h"
#include "macdecls.h"
#include "typesf2c.h"

static short int mic_get_num_initialized=0;
static int num_mic_devs;

extern int util_cgetppn();
extern int util_my_smp_index();
extern int util_my_smp_master();

/* NWC_RANKS_PER_DEVICE values 
   positive : number of ranks/device to use
   0        : use only CPUS, do not use MIC
   negative : undefined, use predefined RANKS_PER_DEVICE */
int util_getenv_nwc_ranks_per_device_() {
	int ret = -1;
	const char *name = "NWC_RANKS_PER_DEVICE";
	char *value;
	value = getenv(name);
{'fraction_non_alphanumeric': 0.09637357178340784, 'fraction_numerical': 0.01838052657724789, 'mean_word_length': 5.29375, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1977068', 'n_tokens_mistral': 812, 'n_tokens_neox': 768, 'n_words': 214}