teamon

  • Archive
  • RSS
  • Ask me anything

Setting up Intel Cluster Compiler with XCode 4

I just spent an hour fighting with dump Intel license server (for trial version). I’m to angry to write, so here is the solution.

The easy part

Download Composer XE for Mac from Intel website, run .dmg, click .pkg, click, click, blah, select XCode integration, click, done.

It will install everything under /opt/intel and … under /Developer/ (no, symlinks, separate install - well, wtf?)

To use icc from command line it is required to run

first.

If you use zsh, then you’ll have to modify /opt/intel/bin/iccvars.sh file and change all “==” to “=” .

Now icc should work from command line. Btw, better add this “source …” line to you .bashrc/.zshrc or you’ll end up typing that command on every new shell.

The “how to make people frustrated” part

Run XCode, choose new c++ project. In project setting select correct compiler:

You can try to hit cmd+b and pray it will work. I’m not that lucky.

It doesn’t work without executing this dump “source” line. I tried to setup build phases, pre-actions and… nothing worked. So, here is the hacky way to make it work.

then open new icc file in editor and put there:

Do the same with icpc.

Now license server shit will be loaded when xcode executes /Developer/usr/bin/icc

But, that’s not everything yet. /Developer/usr/lib is missing some libraries. Just copy what needed from /opt/intel/lib (I needed libimf.a, but it may vary).

After all that hacks it *should* work…

    • #intel
    • #c++
    • #xcode
    • #mac
  • 10 months ago
  • 6
  • Comments
  • Permalink
  • Share
    Tweet

SSH tunels with iChat and Colloquy

University`s internet connection sucks. The only open ports are 22,80 and 433. I wanted to have access to jabber and IRC but those ports are blocked. Solution? - SSH tunnels and some scripting to switching it on and off quickly. (This is just setup for iChat and Colloquy, not a ssh-tunnels tutorial!

Requirements

All you need is server with ssh on port 22.

Setup

iChat

I created two accounts in iChat with the same login but different server settings.

First one has localhost and port 8000, and other one with MY_REAL_JABBER_HOST and MY_REAL_JABBER_PORT.

Colloquy

Again, I created two connections.

One for localhost and port 7000, and second for irc.freenode.net and 6667. (You can use any server you want)

Scripting

You need to set up ssh tunnels. I do it with

And the last one - AppleScript.

Just save those files as enable-tunels.app and disable-tunels.app and you`ll have quick access to them via spotlight.

    • #mac
  • 1 year ago
  • Comments
  • Permalink
  • Share
    Tweet

About

Ruby, Scala and others.

Pages

  • About
  • Projects
  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr