Giter VIP home page Giter VIP logo

c-powermonitory's Introduction

Hi ๐Ÿ‘‹, I'm Federico aka Timmy93

A security engineer from Italy always looking for new technologies and side projects

Connect with me:

federico-seri 4949649

Languages and Tools:

android arduino azure c css3 docker gcp git html5 java javascript kibana kotlin kubernetes linux mssql mysql php python

timmy93

Timmy's GitHub stats

c-powermonitory's People

Contributors

timmy93 avatar

Watchers

 avatar  avatar

c-powermonitory's Issues

Survey Question on the For loop in source file /read_stderr.c line 1633

Hello Sir/ Madam
We are from a research group at Iowa State University, USA. We want to do a survey on Github developers on the methods they used for paralleling their code. To do the survey, We want to ask three questions about this for loop:

  1. Can you briefly explain the purpose of using pragma for this case? If the pragma contained reduction and private clauses, can you briefly mention the purposes of variables in those clauses?

  2. How much confidence do you have about the correctness of this implementation? You can choose from 1-5 with 1 as the lowest confidence score and 5 as the highest confidence score.

  3. (Optional) Do you actually run (interpret the code with compilation and pass input/get output) the code and see the optimization of parallelization? Yes/No

  • If yes, can you provide the information of what are the input and expected output of this program (the input that caused the program to run through this for-loop).

The for loop is from line 1633 of file https:/github.com/Timmy93/C-PowerMonitory/blob/master//read_stderr.c
Here is a part of the code:

omp parallel for shared(median_load, num_plug) private(j, my_plug, plug_data) reduction(+: count)
for (j = 0; j < num_plug; j++)
{
my_plug = find_plug(my_house, j);
plug_data = find_measurement(my_plug, day);
if (plug_data->hour[hour] > median_load)
{
count++;
}

}

Plug *find_plug(House *my_house, int id)
{
int i;
Household *last_hh;
Plug *my_plug;
if (my_house == 0)
{
printf("ERROR\tYou gave me NULL house\n");
return 0;
}

if ((my_house->num_plug - 1) < id)
{
printf("ERROR\tThis house has %d plugs, you're asking for the %dยฐ (id = %d)\n", my_house->

Sincerely thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.