/******************************************************************************
*cr (C) Copyright 2010 The Board of Trustees of the
*cr University of Illinois
*cr All Rights Reserved
Copyright By PowCoder代写 加微信 powcoder
******************************************************************************/
#ifndef __FILEH__
#define __FILEH__
#include
typedef struct {
struct timeval startTime;
struct timeval endTime;
#ifdef __cplusplus
extern “C” {
void initVector(unsigned int** vec_h, unsigned int size, unsigned int num_bins);
void verify(float* A, float* B, float* C, int n);
void startTime(Timer* timer);
void stopTime(Timer* timer);
float elapsedTime(Timer timer);
#ifdef __cplusplus
#define FATAL(msg, …) \
fprintf(stderr, “[%s:%d] “msg”\n”, __FILE__, __LINE__, ##__VA_ARGS__);\
exit(-1);\
} while(0)
#if __BYTE_ORDER != __LITTLE_ENDIAN
#error “File I/O is not implemented for this system: wrong endianness.”
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com