are.ehibou.com

February 17, 2006

BOINC Client application ‘Hello, BOINC World!’

Filed under: BOINC — admin @ 1:43 pm
BOINC Client application ‘Hello, BOINC World!’
#ifdef _WIN32

#include "boinc_win.h"

#endif #include "boinc_api.h"

#include "filesys.h"

#include "util.h"int main(int argc, char **argv) {
char resolved_name[512];
FILE* f;
boinc_init();
boinc_resolve_filename("out", resolved_name, sizeof(resolved_name));
f = boinc_fopen(resolved_name, "w");
fprintf(f, "Hello, BOINC World!\n");
fclose(f);
boinc_finish(0);
return 47;
}
  • Share/Bookmark

BOINC Server component – work generator demon

Filed under: BOINC — admin @ 1:42 pm
BOINC Server component – work generator demon
#include "backend_lib.h"

int main() {
DB_APP app;
DB_WORKUNIT wu;
char wu_template[LARGE_BLOB_SIZE];
char* infiles[] = {"infile"};SCHED_CONFIG config;
config.parse_file();
boinc_db.open(config.db_name, config.db_host, config.db_user, config.db_passwd);
app.lookup("where name='myappname'");
wu.clear(); // zeroes all fields
wu.appid = app.id;
wu.min_quorum = 2;
wu.target_nresults = 2;
wu.max_error_results = 5;
wu.max_total_results = 5;
wu.max_success_results = 5;
wu.rsc_fpops_est = 1e10;
wu.rsc_fpops_bound = 1e11;
wu.rsc_memory_bound = 1e8;
wu.rsc_disk_bound = 1e8;
wu.delay_bound = 7*86400;
read_filename("templates/wu_template.xml", wu_template, sizeof(wu_template));
create_work(
wu,
wu_template,
"templates/results_template.xml",
"templates/results_template.xml",
infiles,
1,
config
);
return 0;
}
  • Share/Bookmark
Comments (0)

February 13, 2006

UBUNTU And ATI Radeon (How to install ATI Radeon on Ubuntu?)

Filed under: Side Notes — Tags: , — admin @ 11:02 am

Installed ubuntu on Intel Pentium 4 EMT64 based platform and faced a problem with ATI Radeon video card driver installation. UBUNTU was not able to start XServer. It throwed some red screens with information abount missconfigured XServer, Displays, Ports and so on.

Fortunately i have found a walkaround.

Here are the things should be done.

(more…)

  • Share/Bookmark
Comments (0)
« Newer Posts

Powered by WordPress