+- +-
Say hello if visiting :) by Gecko
11 Jan 2023, 07:43:05 pm

Seti is down again by Mike
09 Aug 2017, 10:02:44 am

Some considerations regarding OpenCL MultiBeam app tuning from algorithm view by Raistmer
11 Dec 2016, 06:30:56 am

Loading APU to the limit: performance considerations by Mike
05 Nov 2016, 06:49:26 am

Better sleep on Windows - new round by Raistmer
26 Aug 2016, 02:02:31 pm

Author Topic: optimized sources  (Read 615411 times)

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: optimized sources
« Reply #180 on: 12 Jul 2007, 04:40:02 pm »
if I compile I get 2 warings, as you can see in 'xml_match_tag' and 'xml_find_tag'
maybe this make the trouble.....
Code wird generiert...
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\db\xml_util.cpp(663) : warning C4717: 'xml_match_tag': Rekursiv für alle Steuerelementpfade. Die Funktion verursacht einen Stapelüberlauf zur Laufzeit.
c:\i\sc\seti\seti_boinc_2k3_2.2b-ben-joe\db\xml_util.cpp(689) : warning C4717: 'xml_find_tag': Rekursiv für alle Steuerelementpfade. Die Funktion verursacht einen Stapelüberlauf zur Laufzeit.
Kompilieren...
------------------------------------------------------------------------------------------------------------------------
and here is the code ---->
// return true if the tag appears in the line
//
bool xml_match_tag(char* buf,  char* tag) {
    ...
}


bool xml_match_tag(const std::string &s, char* tag)
{
   return xml_match_tag(s.c_str(),tag);
663 }    <----- here

size_t xml_find_tag( char* buf, char* tag) {
...
}

std::string::size_type xml_find_tag(const std::string &s, char* tag)
{
   std::string::size_type p=xml_find_tag(s.c_str(),tag);
   return (p!=strlen(s.c_str()))?p:(std::string::npos);
689 }      <------- here
----------------------------------------------------------------------------------------------------------
have anybody of you a idea to prevent this
your suggestions are welcome....
regards heinz
Hallo heinz,
benenne doch einfach mal die beiden Funktionen size_t xml_find_tag( char* , char* ) und bool xml_match_tag(char* ,  char* ) um, um zu sehen, ob Compiler sich hier nicht irrt. Es scheint mir ja fast so, als würde er den Unterschied zwischen den 'überladenen' Funktionen nicht erkennen. Vergiss nicht die beiden Aufrufe in den Funktionen bool xml_match_tag(const std::string & , char* ) und std::string::size_type xml_find_tag(const std::string & , char* ) ebenfalls abzuändern. Falls der Compiler jetzt immer noch mögliche Endlosschleifen zu sehen glaubt, dann verbirgt sich an dieser Stelle wirklich ein Problem. Falls an dieser Stelle jetzt alles O.K. ist, einfach die Funktionsnamen wieder zurück ändern und die Warnung mit einer #pragma-Anweisung (und Kommentar warum sie da steht) abschalten.

Falls jemand eine bessere Idee hat, bitte mitteilen.

(my idea: compiler does not recognize the overloaded functions. My suggestion is trying to proof that. If the compiler is actually wrong i suggested to shut down especially the given warning with #pragma command.
If someone has a better idea, please tell.)
« Last Edit: 12 Jul 2007, 04:54:41 pm by Urs Echternacht »
_\|/_
U r s

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #181 on: 17 Jul 2007, 07:29:46 pm »
I believe I should write a new function. As it is now written, I don´t like the construct.
Work is going on, be patient.
Regards heinz

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #182 on: 25 Jul 2007, 10:05:48 pm »
Hi all,
I use a dual monitor installation for working. My second Monitor died last night.  :'(
Today I ordered a new 22" multisync flatscreen from LG. Expected in ca. 4 days.


 
Last week, after a month of waiting I got the monitor. I ordered a silver colored monitor and when I opened the package I get a black one.  I installed it, but it does not run properly( letters total blurred and fuzzy, in a distance of all 3cm). It was a desaster. So I sent these damaged hardware back to the shop and ordered back my money.  All this trouble takes me a lot of time. Now I installed a 10 years old MAG CRT Monitor MX17S, it works fine and the letters are clear and exact written on it. Have some old hardware lying around in my working area, so this was possible.
To recreate myself from this desaster  I set up a diskless Pentium 200Mhz w98 workstation to test the last MMX application of seti. Here you can see it running.
----------!----
regards seti_britta ~heinz

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #183 on: 08 Aug 2007, 02:27:10 pm »
Hi all,
my diskless dual 200MMX machine is now crunching. It is a NT4 workstation and runs the client as a service. Two MMX-clients run simultan. If you want read something about it go to dual 200MMX. Enjoy
It is time to continue the work on the optimized client now.
regards seti_britta~heinz

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #184 on: 10 Aug 2007, 04:16:46 pm »
I have a problem with the CPU usage at the MMX dual machine.
Here are 2 pictures that show what I mean.
Any hints are welcome.

[attachment deleted by admin]

Offline Urs Echternacht

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 4121
  • ++
Re: optimized sources
« Reply #185 on: 10 Aug 2007, 06:13:05 pm »
I have a problem with the CPU usage at the MMX dual machine.
...
Any hints are welcome.
What is wrong, you think ? The pics show a normal distribution of CPU-time and usage for a dual CPU configuration.
_\|/_
U r s

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #186 on: 10 Aug 2007, 06:25:41 pm »
Merci Urs,
I did not know, how to interpret it right...  :'(
excuse me.
heinz

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #187 on: 03 Sep 2007, 09:45:28 pm »
Hi all,
back now from holidays in Austria , so we can start again to continue.
regards to all who are reading here
seti_britta ~heinz  ;D

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #188 on: 19 Sep 2007, 06:37:47 pm »
have now still 1 warning in xml_util
-------------------------------------------------
------ Build started: Project: setiboincdb, Configuration: Release32-NOGFX Win32 ------
Compiling...
xml_util.cpp
c:\i\sc\vs90\seti_boinc_2k3_2.2b-ben-joe\db\xml_util.cpp(685) : warning C4717: 'xml_find_tag' : recursive on all control paths, function will cause runtime stack overflow
Build log was saved at "file://c:\I\SC\vs90\seti_boinc_2k3_2.2B-Ben-Joe\client\win_build\Release32-NOGFX\BuildLog.htm"
setiboincdb - 0 error(s), 1 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

I´m working..... it is going on.
regards heinz ~seti_britta

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #189 on: 29 Sep 2007, 06:35:28 pm »
Since I´m back it is so calm here in the forums. 
Or are running all important informations behind the backstage ?
Sometime it seems and I have the feeling nobody is interested in further development of the s@h app.
Sure, a lot is already done. All thanks to the development crew.
-----------------------------------------------------------------------------------------
I asked in the Pre-Release -->Windows forum (22.09.07)
Please let me know if  anybody of you are working with me together in further optimization of the source code.
More about 40 read it, but nothing. No answer till now........I can´t believe it.
-------------------------------------------------------------------------------------------------------------
 :(  :'(


Offline Crunch3r

  • Knight who says 'Ni!'
  • *****
  • Posts: 602
    • 64 bit boinc clients
Re: optimized sources
« Reply #190 on: 29 Sep 2007, 10:05:44 pm »
Since I´m back it is so calm here in the forums. 
Or are running all important informations behind the backstage ?
Sometime it seems and I have the feeling nobody is interested in further development of the s@h app.
Sure, a lot is already done. All thanks to the development crew.
-----------------------------------------------------------------------------------------
I asked in the Pre-Release -->Windows forum (22.09.07)
Please let me know if  anybody of you are working with me together in further optimization of the source code.
More about 40 read it, but nothing. No answer till now........I can´t believe it.
-------------------------------------------------------------------------------------------------------------
 :(  :'(



Hallo Heinz, es liegt vieleicht daran, dass du schon seit monaten auf der 2.2b source herum reites und wir schon bei 2.4 sind...
Warum du das machst, weiß ich nicht...

Des weiteren geht auch nix hinter "verschlossenen Türen" vor sich... es gibt nixt neues und mein persöhnliches interesse an S@H tendiert momentan 100% gegen NULL.... oder ... "void S@H()" :P

Keine ahnung wie das hier weiter gehen soll,  denn ich mache keinen finger mehr krum hier...

Cya... ich bin dann mal gone ....  ;)




I want to share something with you: The three little sentences that will get you through life. Number 1: Cover for me. Number 2: Oh, good idea, Boss! Number 3: It was like that when I got here.

Homer Simpson

Offline The Grinch

  • Knight o' The Realm
  • **
  • Posts: 58
    • www.Au-Ja.de
Re: optimized sources
« Reply #191 on: 30 Sep 2007, 01:18:04 am »
Oh oh!
Das hört sich nach dicke Luft an hier?  :-\

Offline Jason G

  • Construction Fraggle
  • Knight who says 'Ni!'
  • *****
  • Posts: 8980
Re: optimized sources
« Reply #192 on: 30 Sep 2007, 02:05:54 am »
Since I´m back it is so calm here in the forums. 
Or are running all important informations behind the backstage ?
Sometime it seems and I have the feeling nobody is interested in further development of the s@h app.
Sure, a lot is already done. All thanks to the development crew.
-----------------------------------------------------------------------------------------
I asked in the Pre-Release -->Windows forum (22.09.07)
Please let me know if  anybody of you are working with me together in further optimization of the source code.
More about 40 read it, but nothing. No answer till now........I can´t believe it.
-------------------------------------------------------------------------------------------------------------
 :(  :'(



Well I, for one, have been reading what I can (I don't speak german) with Interest, though I rarely have time between school and work to do much poking around in the code.  Now I am on a two week break and thought I'd have a go getting the IPP/ICC installed over the top of my Visual Studio 2005 setup.  In the mean time I've been looking at the older 1.31 sources / tute wrteup, and reading a bit about IPP from an Intel press release guide thingy... ...All good fun..
What's the deal with 2.4 sources ?
[ I've spent the last 2 years or so doing assembler/C on industrial microcontrollers, and setting up PLCs etc.. So my C/C++ and Visual Studio skills have withered since....]

Jason
« Last Edit: 30 Sep 2007, 04:43:57 am by j_groothu »

Offline Jason G

  • Construction Fraggle
  • Knight who says 'Ni!'
  • *****
  • Posts: 8980
Re: optimized sources
« Reply #193 on: 30 Sep 2007, 08:36:53 am »
first try with 1.31 sources:
========== Build: 5 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

 5 out of 7 ... not bad I suppose  :-\

Build log digging time

Note: Found Crun3er's link earlier in this thread to 2.2B sources ... I'll see what they do ...

Jason

« Last Edit: 30 Sep 2007, 08:46:11 am by j_groothu »

Offline _heinz

  • Volunteer Developer
  • Knight who says 'Ni!'
  • *****
  • Posts: 2117
Re: optimized sources
« Reply #194 on: 30 Sep 2007, 10:19:44 am »
@ Crunch3r
neuer client ist erstellt, 2.3A source mit Änderungen eingearbeitet   
das war am 5.Juni, danach hab ich keine anderen Informationen
Das ist der jetzige Stand.
Lässt sich die 2.3.A auf den neuesten Stand bringen ? und wenn ja mit welchen Dateien als Änderung ??
------------------------------------------------------------------------------------------------------------------------------------------------
Ich würde das gerne noch machen, wenn es denn möglich ist.

Im Optimizer gabs in opt_SSE2.cpp Probleme mit -->      s_put1_NC(p, sum1 );
das gab immer Konvertierungsfehler VEC kann nicht in VEC_I konvertiert werden.
opt_SSE2.cpp
.\opt_SSE2.cpp(85) : error C2440: 'Typumwandlung': 'VEC' kann nicht in 'VEC_I' konvertiert werden
        Quelltyp konnte von keinem Konstruktor angenommen werden, oder die Überladungsauflösung des Konstruktors ist mehrdeutig
Das hat ein wenig gedauert, bis ich eine Lösung hatte. Das Problem ist ein eigenes Thema wert.
Das Problem mit dem Stackoverflow konnte ich bisher nicht mit debug finden. Da ist dann noch das Problem mit den beiden rekursiven Funktionen die sich nicht einwandfrei compilieren lassen.
Dann war Sommer und Urlaub... so vergeht die Zeit ganz schnell.

Warum ich das mache ??  Damit die Quellen mal bereinigt und auf den aktuellen Stand gebracht werden.
Wenn ich mich richtig erinnere hatte ich beim ersten compilieren der 2.2B so um die 600 Fehler.
Fehlende Typ-declarationen, Konvertierungsfehler usw. usw.
Jetzt ist der Quelltext, bis auf einige Warnungen bereinigt und teilweise neu strukturiert worden
Nun muss das Programm nur noch eine Test WU erfolgreich rechnen. Das wärs dann.

heinz  ;)







 

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?
Members
Total Members: 97
Latest: ToeBee
New This Month: 0
New This Week: 0
New Today: 0
Stats
Total Posts: 59559
Total Topics: 1672
Most Online Today: 355
Most Online Ever: 983
(20 Jan 2020, 03:17:55 pm)
Users Online
Members: 0
Guests: 61
Total: 61
Powered by EzPortal