<commit_before>/* This test checks that mixing PAPI_flops and the other high
 * level calls does the right thing.
 * Kevin 
 */

#include "papi_test.h"
extern int TESTS_QUIET; /*Declared in test_utils.c */

int main(int argc, char **argv )
{
  int retval;
  unsigned int Events;
  long_long values,flpins;
  float real_time,proc_time,mflops;

  tests_quiet(argc, argv); /* Set TESTS_QUIET variable */
  retval = PAPI_library_init(PAPI_VER_CURRENT);
  if (retval != PAPI_VER_CURRENT)
    test_fail(__FILE__,__LINE__,"PAPI_library_init",retval);

  if ((retval=PAPI_query_event(PAPI_FP_INS)) != PAPI_OK) {
         test_fail(__FILE__, __LINE__, "PAPI_flops", retval); 
  }

  Events = PAPI_FP_INS;
  if ( (retval = PAPI_flops(&real_time, &proc_time, &flpins, &mflops))!=PAPI_OK)
	test_fail(__FILE__,__LINE__,"PAPI_flops",retval);<commit_msg>PAPI event sets are int and not unsigned (T3E and SGI complains)<commit_after>/* This test checks that mixing PAPI_flops and the other high
 * level calls does the right thing.
 * Kevin 
 */

#include "papi_test.h"
extern int TESTS_QUIET; /*Declared in test_utils.c */

int main(int argc, char **argv )
{
  int retval;
  int Events;
  long_long values,flpins;
  float real_time,proc_time,mflops;

  tests_quiet(argc, argv); /* Set TESTS_QUIET variable */
  retval = PAPI_library_init(PAPI_VER_CURRENT);
  if (retval != PAPI_VER_CURRENT)
    test_fail(__FILE__,__LINE__,"PAPI_library_init",retval);

  if ((retval=PAPI_query_event(PAPI_FP_INS)) != PAPI_OK) {
         test_fail(__FILE__, __LINE__, "PAPI_flops", retval); 
  }

  Events = PAPI_FP_INS;
  if ( (retval = PAPI_flops(&real_time, &proc_time, &flpins, &mflops))!=PAPI_OK)
	test_fail(__FILE__,__LINE__,"PAPI_flops",retval);
{'fraction_non_alphanumeric': 0.11976744186046512, 'fraction_numerical': 0.0005813953488372093, 'mean_word_length': 5.03859649122807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7116369', 'n_tokens_mistral': 654, 'n_tokens_neox': 639, 'n_words': 143}