Skip to content

Commit

Permalink
Fix some issues with nsight setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kainino0x committed Aug 26, 2015
1 parent 877de45 commit 66a5c10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 42 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cis565_getting_started_generated_kernel*
*.sln
*.vcxproj
*.xcodeproj
build

# Created by https://www.gitignore.io/api/linux,osx,sublimetext,windows,jetbrains,vim,emacs,cmake,c++,cuda,visualstudio,kate,webstorm,eclipse,xcode

Expand Down
27 changes: 0 additions & 27 deletions .project

This file was deleted.

28 changes: 13 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,19 @@ It is recommended that you use Nsight.

1. In a terminal, navigate to your cloned project directory
(`cd some/path`).
2. Create a `build` directory: `mkdir build`
* (This "out-of-source" build makes it easy to delete the `build` directory
and try again if something goes wrong with the configuration.)
3. Navigate into that directory: `cd build`
4. Open the CMake GUI to configure the project: `cmake-gui ..`
* Click *Configure*. Select the Unix Makefiles generator.
* If you see an error like `CUDA_SDK_ROOT_DIR-NOTFOUND`,
set `CUDA_SDK_ROOT_DIR` to your CUDA install path. This will be something
like: `/usr/local/cuda`
* Click *Generate*.
5. Open Nsight. Set the workspace to the one *containing* your cloned repo.
6. *File->Import...->General->Existing Projects Into Workspace*. Select
the project directory. *Finish.*
7. Select the *cis565-* project in the Project Explorer. Build.
8. Run.
2. Type `make`.
3. If you see an error like `CUDA_SDK_ROOT_DIR-NOTFOUND`:
* `cd` to the build directory, then run CMake GUI: `cmake-gui ..`
* Set `CUDA_SDK_ROOT_DIR` to your CUDA install path.
This will be something like: `/usr/local/cuda`
* Click *Configure*, then *Generate*.
4. Open Nsight. Set the workspace to the one *containing* your cloned repo.
5. *File->New->Makefile Project with Existing Code*.
* Set the *Existing Code Location* to the cloned project directory.
* Select *CUDA Toolkit 7.0*.
* *Finish*.
6. Select the *cis565-* project in the Project Explorer. Build.
7. Run the `cis565_` binary.


## Part 4: Modify
Expand Down

0 comments on commit 66a5c10

Please sign in to comment.