Monday, July 11, 2011

GIT: Ignore File mode/right changes

If you have files or directories under git control and change the rights of them, git does recognize them as changed.
To force git to ignore these changes just execute the following.

git config core.filemode false

You can reenable that after all files have a new revision because of an actual change and are comitted in the new mode anyway.

Tuesday, June 28, 2011

LIKWID: Installation Hint

If you set the likwid install path in config.mk and the last character is a slash, likwid-pin will not run with the following error message:


ERROR: ld.so: object '~/helper/likwid-2.2-inst' from LD_PRELOAD cannot be preloaded: ignored.

Delete the last slash and do
make clean && make && make install

and likwid-pin should work fine.

Monday, June 27, 2011

Tuesday, June 21, 2011

Disable Fermi Cache

To disable Fermi L1 Cache in CUDA just compile with: -Xptxas -dlcm=cg

Any idea on how to do this with OpenCL?

Tuesday, June 14, 2011

GIT: Getting information about tags

To show the tags you made and the comments or tag messages:

git tag -l -n1

Monday, April 18, 2011

NVIDIA CUDA disable/enable ECC

Show ECC config nvidia-smi -r
Enable ECC on GPU 0: nvidia-smi -g 0 -e 1
Disable ECC on GPU 0: nvidia-smi -g 0 -e 0

You need a reboot to get settings active

Thursday, April 7, 2011

EMACS: Whitespaces

Motivation:
Each and every editor handles whitespaces tabs etc. differently. The first step to get everyting out to the open is so show whitespaces and tabs the way the editor sees them. For me it's emacs and the following lines in your ~/.emacs should give you a good view of whitespaces.
Look at this documentation for all references

Please be patient and drop me a comment if there are any errors or misunderstandings. I'm really no emacs pro!!!

(require 'whitespace)
(global-whitespace-mode t)

Monday, March 28, 2011

Wednesday, March 16, 2011

GIT: Pushing a new repository to a git server the first time

Scenario:
You created some local repository and worked on that for a while. Now you want to have it on a server so that others can collaborate.
We want to keep the full history so we want to push the current repository to the server. In order to do this at least for the master branch you have to edit the config file at:
/.git/config
It probably looks like the following:
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true



The easiest way to get everything right is to check out the empty repository from the server via git clone and diff the two config files.
Finally you see that you have to add something like:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = user@yourgitserver.com:MyNewProject
[branch "master"]
remote = origin
merge = refs/heads/master

To the existing config.

Now issue a git push origin master and the master will be pushed.
If you know whether that works with branches as well or how to get that working, please drop me a comment!?

There are other ways to just give the repository as a argument at the git push command but I like to keep my old directories.