Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -56,21 +56,13 @@ Base Toolkit Get Started Guide (https://devcloud.intel.com/oneapi/get-started/ba

## Build and run

### On a Windows\* System Using Microsoft Visual Studio 2017 or Newer
### On a Windows\* System Using NMAKE

#### Build the motionsim Program Using Visual Studio 2017 or Visual Studio 2019
Run `nmake` to build and run the sample. `nmake clean` removes temporary files.

##### 1. Right click on the solution file (.sln) and open it using either Visual Studio 2017 or Visual Studio 2019
##### 2. From Visual Studio, right click on the project solution file in solution explorer and select rebuild
##### 3. From top menu select Debug -> Start Without Debugging
Run executable with select parameters:

#### Build the motionsim Program Using MSBuild

##### 1. Open "x64 Native Tools Command Prompt for VS 2017" or "x64 Native Tools Command Prompt for VS 2019" as Administrator (right click application and select Run as Administrator)
##### 2. Build
From the particle diffusion Project directory:

> MSBuild Particle_Diffusion.sln /t:Rebuild /p:Configuration="Release"
`motionsim.exe 10000 256 22 777 0 1`

### On a Linux\* System Using CMake

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Makefile for NMAKE

default: run_all

all: run_all

run_all: motionsim.exe
.\motionsim

DPCPP_OPTS=/I"$(MKLROOT)\include" /Qmkl /DMKL_ILP64 /EHsc -fsycl-device-code-split=per_kernel -fno-sycl-early-optimizations OpenCL.lib

motionsim.exe: src\motionsim.hpp src\motionsim.cpp src\motionsim_kernel.cpp src\utils.cpp
dpcpp src\motionsim.cpp src\utils.cpp src\motionsim_kernel.cpp /Femotionsim.exe $(DPCPP_OPTS)

clean:
del /q motionsim.exe

pseudo: run_all clean all
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@
}],
"windows": [{
"steps": [
"MSBuild Particle_Diffusion.sln /t:Rebuild /p:Configuration=\"Release\"",
"cd x64/Release",
"Particle_Diffusion.exe 10000 256 22 777 0 1"
"nmake clean",
"nmake"
]
}]

Expand Down