-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
s #1
base: master
Are you sure you want to change the base?
s #1
Conversation
script to run RFIM_2D_main_multi_core.cpp code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix this so i can merge
@@ -7,15 +7,21 @@ | |||
|
|||
//#define _HAS_ITERATOR_DEBUGGING 0 | |||
|
|||
#include <fstream> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this in Parameters.h file
int main(void) { | ||
f.open("log.dat",ios::app); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it ios::in
@@ -25,6 +31,7 @@ int main(void) { | |||
|
|||
for (l = 0; l < iter; l++) | |||
{ | |||
f << "iter: " << l <<endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove endl
@@ -58,6 +65,7 @@ int main(void) { | |||
|
|||
for (int del = del_beg; del <= del_end; del += del_inc) | |||
{ | |||
f << "del: " << del << endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove endl
uniform_int_distribution<int> distr(0,5000); | ||
return distr(generator); | ||
} | ||
void *blowjob(void* thread_id) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app ? dude make it in
@@ -0,0 +1,252 @@ | |||
iter: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don`t need this file
@@ -0,0 +1,14 @@ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also make this for RFIM_2D_main.cpp
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>
.
|
No description provided.