Programming :: Implement Some Part Of Codes To Use The GPU Of Graphic Card?
Sep 25, 2010
I wish to implement some part of my codes to use the GPU of my graphic card but I have no idea whether GNU as already implemented it (as for OpenMP). I mean, there are PGI Fortran compiler which embedded CUDA but I figure it's not free. I also wonder if that works only with ATI graphic cards or if for instance I can use my Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller.
View 4 Replies
ADVERTISEMENT
Apr 8, 2009
In Fedora 10, I cannot get to the installer because it shows these messed up strips graphics (its not due to my graphic card, my graphic card is supported 7600gt) in non-quiet install it shows logical errors and i/o errors.
View 12 Replies
View Related
Sep 27, 2010
I wonder if there is any chance to one day be able to code a graphic card (i.e NVedia and CUDA) with GNU software (i.e gfortran) like PGI dos with its fortran compiler.
View 4 Replies
View Related
Mar 30, 2010
So I finally got ubuntu..I wanted to play team fortress 2.Runs great in wine etc.But 1 problem.It keeps saying my graphic card is outdated.I cant see anything.So I downloaded the driver from nvidia website.Followed some instructions.But it says cannot open binary file or something.Is there any other way to update graphic drivers.Cause I realy still want to play some windows games.Mount&blade, Atlantica online,team fortress 2 etc
View 1 Replies
View Related
Nov 8, 2010
i justy got me a dedi box and there is no graphic driver installed on it, or it dont work :/ VGA compatible controller: S3 Inc. VT8375 [ProSavage8 KM266/KL266] but wen i try installing enemy territory it comes back with error on graphic card
[Code]....
View 9 Replies
View Related
Mar 9, 2011
I am looking for a program that would allow me to "cut" a piece out of the picture that would have correct proportions e.g. sides in ration 1:2. What I mean is that I would open the picture, set the proportion of sides, pick my part of the picture and then could resize it. graphic program that does that? I tried several ones and did not succeed. I won't be a problem if its only a one purpose utility.
View 5 Replies
View Related
Aug 28, 2010
I think I put this in the wrong place
View 1 Replies
View Related
Aug 25, 2010
how to use socket programming in order to implement chatting feature
View 5 Replies
View Related
Nov 3, 2010
I've got a 'nested' for loop which has a grep in it, if the grep fails there's no output - however the error code is still $0 and the second for loop is still entered, there's also a grep in the second for loop.I guess ultimately what i need to know is whether there's a way of making grep generate an error code. when no results are found?
View 14 Replies
View Related
Dec 11, 2008
I have downloaded whole linux source codes of fedora in a dvd. There are several rpm packages and lots of directories in it. I want to load all source codes to version control system (svn or cvs) which is loacated in a server and develop it step by step .During this time I want to build my own distribution. So I need to know how to build all these packages at once. Is there anyone who can explain "how to do" to me
View 1 Replies
View Related
Apr 4, 2011
I wrote a c++ program but for security reasons I need to make sure that no one can read my codes by my ".out" files. I did everything I could. But everyone can see it by "strings Alpha.cpp".I heard that g++ has some options to do so.
View 7 Replies
View Related
Jun 16, 2010
I got some problems and need your help.
In school, my codes are writeen under UNIX system (Solaris10/SUN), now I need to transfer those codes to Linux (Redhat5). But after I directly copy to Linux, it shows many errors and warnings.
Does anyone know which codes I need to modify to specifily suit for UNIX? I am not familiar with those systems and hope to get your kind help.
View 5 Replies
View Related
Mar 13, 2011
I am a student taking part in a comptition. We have a set of questions to complete within today. Can anyone please help me out with it. I have a custom written "echo" program in C, running on port number "1220" which echoes back the first 16 characters of whatever is given as the first command line argument. But somehow, my brother had got unauthorized remote root access. The program is given below. How did he do it? Please give the exploit code and explain how it works.
#include
#include
void echo(char* input) {
[code]....
View 2 Replies
View Related
Mar 7, 2011
I have a partially completed interpreter that has first-calss functions and can store scopes in variables. That way it is possible to implement a simple class like this:
Code:
MyClass = func () {
value = 0;
setValue = func (x) value = x;;
[code]....
But what about inheritance, and what if I want to know the type of the object?
View 6 Replies
View Related
Jan 8, 2011
One of the feature in my application involve changing of hardware setting. This require the user to be root or have administrative right.Before my application enable that feature, I want it to check whether the user is "root" or not, or whether user use "sudo" command to run the application or not, or whether the user has administrative rights or not.What are the codes or library that can do this?
NOTE: Sometimes, advanced linux user may set the user id of root to something else other than 0. So, getuid() may not be helpful in this case.
View 4 Replies
View Related
Jul 19, 2010
I need a script that can print some series of strings in colors based in the information of a file, for simplicity let's say it only does:
Code:
#!/bin/bash
printf "e[1;31;32m%-10se[00m" "OK"
When you execute this in the command line it prints a bold green 'OK'. So far so good.
Now, I need to check the output of the script over time using the command watch. The problem then arises. watch seems to ignore the escape codes and just prints:
Code:
[1;31;32mOK [00m
Is there any way to fix this?
If not, how can I check inside the script if it is being executed from a command? (watch in this case) So I can print without color for those cases.
View 4 Replies
View Related
Jul 28, 2010
I am doing real time programming in C++, under Linux. I have two processes, let me say A and B. A process is being started periodically, every 5ms. B process is being started every 10ms. The process A is doing data processing. The process B is reading that data and displays it. I am confused about how to run periodically processes. The problem is that the period of process A should be as much as it is possible accurate (5ms). For the process B it isn't so important. I have created independent processes, each in one .cpp file, and I am starting them from bash file. Is that OK? I don't have to make child processes in order to have parallel processes?
View 1 Replies
View Related
Aug 11, 2010
So basically, there is a really cool writing system I have been working on. It could be viewed (for simplification purposes) like an encryption method for the Latin script.
Facts about the writing system:
It has a little over 300 symbols.
It is syllable-driven.
It is highly compositional (eg. "c", "ca", "cae", "ca " and "ci." all map to different symbols - and NOT by overlaying elements)
Symbols have medium graphical complexity (comparable to Korean Hangul, or Japanese Hiragana)
Has a rather complex set of diacritics (~10, some of which can go on any symbol)
Has no ligatures
How transliteration occurs:
Sequences of Latin symbols map to certain symbols. Example below:[G][rou][p ][hu][g.]Characters sequences between "[" and "]" map to a single symbol (so it would take only 5 symbols to write "Group hug.").
How I want it to work:
I would like to have a daemon that: Intercepts all text displayed on the screen.
Converts it to my writing system (changes letter sequences with individual Unicode codes)
Leaves unsupported symbols unchanged.
Displays all the text on the screen using my font and characters intertwined with the fonts and characters left unchanged.
For example, if you take the following line of C++ code:for (i = 1; i <= n; i++)
I would like it displayed like this:[fo][r ]([i ]= [1]; [i ]<= [n]; [i]++)
Bold-symbols should be in my Unicode font with special symbols defined for this writing system, and the rest should be in its original font and encoding. Also, I would like this encoding to hold for display-purposes only. The data in the memory should remain unaffected. This also means real-time adjustments: if I open a text editor (say, from the OpenOffice Suite) and I start typing, I would like to see what I type encoded with my writing system, even though the document actually contains Latin letters. This also means that the symbol immediately before the cursor may change as you type.
View 3 Replies
View Related
Nov 9, 2010
I have these but not working.
size_t count_words(const std::string& s)
{
std::istringstream is(s);
return distance( std::istream_iterator<std::string>(is),
std::istream_iterator<std::string>());
}
and
std::string s; // word count
unsigned int wordno = 0;
while(getline(myfile, s))
{ ++wordno;
if(s.empty())++ wordno;
else wordno += count_words(s);
std::cout << s << '
';
}
myoutput1<< "Number of words : " << wordno << '
';
myoutput1 << "
Word" <<" " <<" Occurrence" <<endl;
myoutput2<< "Number of words : " << wordno << '
';
myoutput2 << "
Word" <<" " <<" Occurrence" <<endl;
View 6 Replies
View Related
Feb 9, 2011
I developed a protocol "it's a modification of OLSR" for wireless networks, it was with JAVA and I try to simulate it on NS2, I used AgentJ, so in the TCL I did any thing like usual;
set val(chan) Channel/WirelessChannel ;# channel type
set val(prop)Propagation/TwoRayGround ;# radio-propagation model
set val(netif) Phy/WirelessPhy ;# network interface type
[code]....
and I didn't specified the protocol because I attached my nodes to the JAVA class responsible for the protocol, but when I run it generates errors, it claims the protocol to use, so I don't know how proceeding.
View 2 Replies
View Related
May 14, 2011
I implemented a SSL client using openssl on Linux and it's working fine i am getting response from server...
But my problem is I have a separate thread for each request comes form front end and i have to do SSL communication in each thread, for this i have to create a separate SSL Context for each thread and this is taking too much time hence my transaction is getting delayed
My question is can we implement Persistent SSL connection where i will do SSL Handshake only at the time of application startup and use that connection in all the threads....
View 2 Replies
View Related
Sep 3, 2010
i need to implement a Set class(like in stl) using a vector.Here is my code that doesnt work corectly:
Code:
#include <iostream>
#include <vector>
template<class T>
class Set
{
[Code]....
View 2 Replies
View Related
Feb 14, 2011
I installed ubuntu but when I first tried to login with my correct passwords it goes in a loop and prompt me to log in again. I went to recovery mode and selected safe mode then I was able to log in without any further prompts. As a result of what happened, I unlocked the login screen and changed the setup to allow me to log in automatically and in safe mode only. I am now stuck to login in safe mode only. I tried to unlock the login screen to change to default but no chance. If there is no graphic card in the PC would that have an effect on memory or login?
View 4 Replies
View Related
Jul 20, 2009
How do you enable the graphic card? i have an ATI one and using fedora
View 2 Replies
View Related
Oct 19, 2010
How can I implement c_str() for a string class?
View 2 Replies
View Related
May 6, 2011
I have an interpteter that supports string literals, and the way it works is that the lexer returns the entire string as a single token, with the quotes removed and escape sequences replaced with the literal characters they represent.
I already implemented single-quote strings, they don't interpret any characters specially except for the single quote. I partially implemented double-quoted strings, they already support all the same backslash escape sequences that C does. But I would also want to add variable substitution.
The way it would work is that "${expression}" would interpret the expression (which could just be a variable name) and replace itself with the result. But I have no idea how to do this.
In case it matters, I'm using a hand-written lexer and recursive-descent parser.
View 14 Replies
View Related
Oct 11, 2010
I need to implement SAML 1.1 SSO process in Php(Preferred), Java, or C# I am having a very difficult time finding information related to this task. If I could use SAML 2.0 I would be home free with "Simple Saml Php" but I am not that lucky. Would the process be as simple as building the SAML in XML then submitting it with a SoapClient? According to the Docs I've read that would appear to work.
View 1 Replies
View Related
Mar 20, 2009
how to implement inheritance an polymorphism in plain C. Most of them do this through function pointers.However I'd like to support multiple inheritance.
View 14 Replies
View Related
Jul 2, 2010
I'd like to implement a dynamic menu which will allow me to specify an IP address and read it into memory. This is what I've got so far (it's fairly basic...)
Code:
IPS=`ifconfig -a | grep 'inet addr:' | awk '{print $2}' | tr -d "addr:"`
PS3='Select an option and press Enter: '
select i in $IPS
do
case $i in
$i) echo $IPS;;
esac
done
echo $IPS
At the moment it just says "Which IP would you like to use" and then freezes, most success I've had is it showing all the IP's listed in ifconfig and then showing the same menu.
View 4 Replies
View Related
Jan 17, 2010
I'm implementing a TCP protocol. TCP implementation requires to send packets continuously and if the receiver doesnt respond after a particular interval of time it should resend the packet again. I need some method to implement a timer expiry function. How can I implement it? Should i implement threads (If yes can you please give a sample)? or is there any better method? I'm implementing it in a Unix system.
View 3 Replies
View Related