Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6b9b580
New Codeplay example: Image Gaussian Blur
Nov 25, 2022
ce4049a
Fix: Changed source image name to use .jpg instead of incorrect .png
Nov 25, 2022
96f787f
-s -m "FIx: Added some clarifications to the text"
Nov 28, 2022
6876309
Added CMake build configuration to the project.
Nov 28, 2022
0f167bb
Remove binary from the project bin directory
Nov 28, 2022
c7bbfa1
Added/edit comments
Nov 29, 2022
58d4a33
Edit readme to make the sections cleare
Nov 29, 2022
c939f8f
Removed example from RenderToolkit directory
Nov 29, 2022
3a89fc6
GuassianImageFilter example new home. Moved from RenderToolkits/Tutor…
Nov 29, 2022
6249c6e
VSCode build configurations now use the ipcx compiler
Nov 29, 2022
679d7c5
VSCode change the launch configuration to use relative directory path
Nov 29, 2022
fdbde56
VSCode debug instruction comment added
Nov 29, 2022
ce9839f
Now using stbi image library from the /dev-utilities/include, not loc…
Nov 29, 2022
adbf8e8
New Codeplay example: ParallelPrefixSumScan
Dec 1, 2022
0f42488
Fixed: GaussianImageFilter readme.
Dec 1, 2022
ff722a2
New Codeplay example 'Monte Carlo Pi v2' added
Dec 6, 2022
66258f8
Change to Intel icpx compiler
Dec 8, 2022
54dda95
Fix spelling mistake
irudkin Jan 26, 2023
a6ed847
Upgrade to Intel 2023.0.0 fixes; project paths, change compiler
Jan 26, 2023
bff09ae
Merge branch 'master' of https://github.com/irudkin/oneAPI-samples
Jan 26, 2023
81294dd
Upgrade to 2023.0.0, replace CL with SYCL.
Jan 26, 2023
78ed457
Upgrade to Intel 2023.0.0 fix compile warnings
Jan 26, 2023
9def63f
Upgrade to Intel 2023.0.0 fixes; project paths, change compiler
Jan 26, 2023
b631a6f
Upgrade to Intel 2023.0.0 fix compile warnings*. Remove host device.
Jan 26, 2023
9c7f0c7
Upgrade to Intel 2023.0.0 fixes; project paths, change compiler
Jan 26, 2023
260480a
Upgrade the device selector code to remove SYCL 2020 warnings*.
Jan 26, 2023
f336626
Merge branch 'oneapi-src:master' into master
irudkin Mar 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added CMake build configuration to the project.
Signed-off-by: Illya <illya@codeplay.com>
  • Loading branch information
Illya committed Nov 28, 2022
commit 687630991610b06ce29144e064363be1feaa5289
16 changes: 16 additions & 0 deletions RenderingToolkit/Tutorial/ImagesGaussianBlur/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
if(WIN32)
set(CMAKE_CXX_COMPILER "dpcpp-cl")
set(CMAKE_C_COMPILER "dpcpp-cl")
else()
set(CMAKE_CXX_COMPILER "icpx")
endif()
set(CMAKE_CXX_STANDARD 17)
if(NOT DEFINED ${CMAKE_BUILD_TYPE})
set(CMAKE_BUILD_TYPE "RELEASE")
endif()
if( CMAKE_BUILD_TYPE STREQUAL "DEBUG" )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
endif()
cmake_minimum_required (VERSION 3.4)
project (gaussian_blur)
add_subdirectory (src)
18 changes: 18 additions & 0 deletions RenderingToolkit/Tutorial/ImagesGaussianBlur/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,24 @@ A new image file will appear in the bin directory 'sample_image-blurred.png'.
To view the image, select it in the directory folder app and hit return.
Ubuntu will display the image using the preview app.

## Build and Run using CMake
### Linux*
```
mkdir build
cd build
cmake ..
make
```

To blur an image, copy the images/sample_image.jpg to the directory of the new
executable. Type in the terminal window:

```
cd src
./gaussian_blur_d sample_image.jpg
```
Open the resulting file: `sample_image-blurred.png` with an image viewer.

## Debug the program

### Linux*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -fsycl")
set(CMAKE_BUILD_TYPE "RelWithDebInfo")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
add_executable (gaussian_blur gaussian_blur.cpp)
target_link_libraries(gaussian_blur OpenCL sycl)