Open
Conversation
script to run RFIM_2D_main_multi_core.cpp code
teknasd
reviewed
Nov 25, 2017
|
|
||
| //#define _HAS_ITERATOR_DEBUGGING 0 | ||
|
|
||
| #include <fstream> |
|
|
||
| ofstream f; | ||
| int main(void) { | ||
| f.open("log.dat",ios::app); |
|
|
||
| for (l = 0; l < iter; l++) | ||
| { | ||
| f << "iter: " << l <<endl; |
|
|
||
| for (int del = del_beg; del <= del_end; del += del_inc) | ||
| { | ||
| f << "del: " << del << endl; |
| uniform_int_distribution<int> distr(0,5000); | ||
| return distr(generator); | ||
| } | ||
| void *blowjob(void* thread_id) { |
Owner
There was a problem hiding this comment.
we give our github id to employers, why the fuck you put blowjob in it
| string file_name = "log/log"; | ||
| file_name += to_string(id); | ||
| file_name = file_name + "_" + to_string(randomizer()) + ".dat"; | ||
| f.open(file_name,ios::app); |
| @@ -0,0 +1,252 @@ | |||
| iter: 0 | |||
| @@ -0,0 +1,14 @@ | |||
|
|
|||
Owner
There was a problem hiding this comment.
also make this for RFIM_2D_main.cpp
Author
|
You gonna fuck me like this every team I make a commit.
On Nov 26, 2017 2:03 AM, "sanket deshpande" <notifications@github.com> wrote:
*@T-E-K-N-A-S* commented on this pull request.
fix this so i can merge
------------------------------
In RFIM_2D_main.cpp
<#1 (comment)>:
@@ -7,15 +7,21 @@
//#define _HAS_ITERATOR_DEBUGGING 0
+#include <fstream>
put this in Parameters.h file
------------------------------
In RFIM_2D_main.cpp
<#1 (comment)>:
int main(void) {
+ f.open("log.dat",ios::app);
make it ios::in
------------------------------
In RFIM_2D_main.cpp
<#1 (comment)>:
@@ -25,6 +31,7 @@ int main(void) {
for (l = 0; l < iter; l++)
{
+ f << "iter: " << l <<endl;
remove endl
------------------------------
In RFIM_2D_main.cpp
<#1 (comment)>:
@@ -58,6 +65,7 @@ int main(void) {
for (int del = del_beg; del <= del_end; del += del_inc)
{
+ f << "del: " << del << endl;
remove endl
------------------------------
In RFIM_2D_main_multi_core.cpp
<#1 (comment)>:
+ #include <pthread.h>
+#endif
+#define NUM_THREADS 1
+
+using namespace std;
+
+
+ofstream f;
+
+int randomizer(void){
+ random_device rand_dev;
+ mt19937 generator(rand_dev());
+ uniform_int_distribution<int> distr(0,5000);
+ return distr(generator);
+}
+void *blowjob(void* thread_id) {
we give our github id to employers, why the fuck you put blowjob in it
------------------------------
In RFIM_2D_main_multi_core.cpp
<#1 (comment)>:
+ofstream f;
+
+int randomizer(void){
+ random_device rand_dev;
+ mt19937 generator(rand_dev());
+ uniform_int_distribution<int> distr(0,5000);
+ return distr(generator);
+}
+void *blowjob(void* thread_id) {
+ pthread_mutex_t mutex;
+
+ long id = (long)thread_id;
+ string file_name = "log/log";
+ file_name += to_string(id);
+ file_name = file_name + "_" + to_string(randomizer()) + ".dat";
+ f.open(file_name,ios::app);
app ? dude make it in
------------------------------
In log.dat
<#1 (comment)>:
@@ -0,0 +1,252 @@
+iter: 0
we don`t need this file
------------------------------
In make_RFIM_2D_main_multi_core.sh
<#1 (comment)>:
@@ -0,0 +1,14 @@
+
also make this for RFIM_2D_main.cpp
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (review)>,
or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AQHrWHSCR4DW5Vr1WEsbQB5NVmeF_S_1ks5s6HmtgaJpZM4QqhC6>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.