LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-09-2014, 08:54 AM   #1
zerop
Member
 
Registered: Jul 2014
Posts: 65

Rep: Reputation: Disabled
Question How to auto parallelization with gcc and graphite


Is it auto done by gcc in default?

If so, why need graphite?

How to output the auto parallelized source code to see the result?
 
Old 08-09-2014, 09:16 AM   #2
zer0python
Member
 
Registered: Sep 2003
Posts: 104

Rep: Reputation: 20
mm? not sure what you're asking.
Maybe this will help -> https://gcc.gnu.org/ml/gcc/2012-07/msg00245.html


https://gcc.gnu.org/wiki/Graphite/Parallelization
Quote:
First step of autopar in Graphite has been done. You can trigger it by 2 flags -floop-parallelize-all -ftree-parallelize-loops=4. Both of them is needed, the first flag will trigger Graphite pass to mark loops that can be parallel and the second flag will trigger the code generation part.

Last edited by zer0python; 08-09-2014 at 09:18 AM. Reason: Added link / quote
 
Old 08-09-2014, 08:30 PM   #3
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
Why equal to 4 ?
 
Old 08-09-2014, 08:40 PM   #4
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
I mean can it generated code which can show how it loop fusion the nested for loop
In another words, will there a folder to output the loop fusion result code
 
Old 08-09-2014, 09:26 PM   #5
zerop
Member
 
Registered: Jul 2014
Posts: 65

Original Poster
Rep: Reputation: Disabled
sudo apt-get install build-essential
sudo apt-get install libboost-dev libboost-filesystem-dev libboost-system-dev
sudo apt-get install git-core
wget http://github.com/mit-carbon/Graphit/tarball/master -O graphit.tar.gz
or
git clone git://github.com/mit-carbon/Graphite.git

i use git, because the link of tar gz do not exist in directory
after command make, got error


from /home/wonder/Downloads/graphite/Graphite/contrib/dsent/dsent_contrib.h:4,
from /home/wonder/Downloads/graphite/Graphite/common/network/components/router/router_power_model.h:8,
from /home/wonder/Downloads/graphite/Graphite/common/network/models/network_model_emesh_hop_counter.h:5,
from /home/wonder/Downloads/graphite/Graphite/common/network/network_model.cc:8:
/home/wonder/Downloads/graphite/Graphite/contrib/db_utils/api.h:1:16: fatal error: db.h: No such file or directory
compilation terminated.
make: *** [/home/wonder/Downloads/graphite/Graphite/common/network/network_model.o] Error 1

Last edited by zerop; 08-09-2014 at 09:57 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Anybody ever install graphite? markseger Linux - Software 0 12-27-2011 09:32 AM
LXer: GCC 4.4 improves open source compiler with Graphite LXer Syndicated Linux News 0 04-28-2009 07:20 PM
path auto start for gcc threaderslash Solaris / OpenSolaris 3 04-27-2009 01:31 AM
LXer: GCC 4.4.0 Released With Graphite, Etc LXer Syndicated Linux News 0 04-24-2009 02:40 AM
How to make gcc auto link lib named libmylib.so.1.0 use -lmylib ffsola Programming 7 09-14-2008 03:38 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration