BOINC Client application ‘Hello, BOINC World!’

BOINC Client application ‘Hello, BOINC World!’
[code lang=”cpp”]
#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;
} [/code]

BOINC Server component – work generator demon

BOINC Server component – work generator demon
[code lang=”cpp”]#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;
}[/code]

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

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.

Continue reading “UBUNTU And ATI Radeon (How to install ATI Radeon on Ubuntu?)”