[go: nahoru, domu]

Skip to content

maatini/coursera-heterogeneous

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

coursera-heterogeneous

These are offline resources to work on the assignments of Heterogenous Parallel Programming course from Coursera.

Files include:

  • WB API header file (wb.h)
  • Generate data to test assignments (GenDataMP1.cpp, GenDataMP2.cpp, ...)
  • Assignment files (MP0.cu, MP1.cu, ...)

All of this works only if you have access to CUDA hardware.

Usage

On Windows with Visual Studio

  • Update NVIDIA driver for your CUDA hardware
  • Download and install Visual Studio or Visual C++ Express Edition.
  • Download and install CUDA toolkit
  • Create CUDA project in Visual Studio
  • Place this wb.h in same directory as your CUDA source file (mp1.cu for example)
  • Compile and run!

On OS X with Xcode

Make sure you have XCode & Cmake. You can get cmake from macports via: sudo port install cmake or homebrew via: brew install cmake

  • Download and install NVIDIA CUDA for MacOS from here
  • Clone repo and run: cmake CMakeLists.txt -G Xcode
  • Open the resulting Project.xcodeproj
  • Change Loading flags:
  • Highlight Project
  • Select mp0 under targets
  • Under Build Settings, select Linking: Other Linker flags
  • Double click to expand the flags
  • Click the (+) at the bottom of the flags window
  • Add the following: -F/Library/Frameworks -framework CUDA
  • Now you can run & add debug points

Contributors

View list of contributors

We welcome improvements to this code. Fork it, make your change and give me a pull request. Please follow the coding conventions already in use in the source files.

License

All the files in this project are shared under the MIT License.

Copyright (C) 2012 Contributors

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages