Skip to content

Commit c7e9ff9

Browse files
authored
Merge pull request #129 from ComputationalRadiationPhysics/release-1.5.2
release 1.5.2
2 parents 47c475d + 8047067 commit c7e9ff9

File tree

10 files changed

+364
-251
lines changed

10 files changed

+364
-251
lines changed

CHANGELOG.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# Changelog
2+
3+
## [v1.5.2] - 2021-01-22
4+
5+
alpaka 0.6.0 is required if you enabled alpaka support.
6+
7+
* Server
8+
- fix jansson 2.12+ support #123
9+
* Library
10+
- fix missing include #124
11+
- fix jansson 2.12+ support #123
12+
- apply namespace refactoring from alpaka 0.6.0rc3 #122
13+
14+
15+
## [v1.5.1] - 2020-11-06
16+
17+
* Server
18+
- Send/Receive buffer sizes adjustable in cmake as ISAAC_MAX_RECEIVE + added warnings/errors on overflow #115
19+
- Fix for newer LibWebSocket versions #108
20+
- Replaced imageConnectorList with map to guarantee correct ID #106
21+
22+
* Library
23+
- enable AO bug via pre-compiler flag #112
24+
- Fix for wrong depth values on clipping plane for ambient occlusion calculations #111
25+
- Use correct MIN/MAX functions in kernel #109
26+
- fix compile error (missing include) #107
27+
28+
29+
## [v1.5.0] - 2020-05-04
30+
31+
The versioning of the server follows now the library versioning.
32+
33+
- CMake: remove manipulation of CUDA_NVCC_FLAGS #101
34+
- Add Simple ambient occlusion effect #98
35+
- Modern browser fix and client code reorganization #92
36+
- Alpaka example fix + Updated Alpaka function calls #89
37+
- Particle integration in library and example #88
38+
- Server fixes #87
39+
40+
41+
## [v1.4.0] - 2018-06-12
42+
43+
- Fixed broken iso surface calculation for border regions
44+
- Fixed visible egdes between node borders in iso surface rendering
45+
- Fixed memory access of gradient calculation in two-cell border around volume
46+
- Added simple ortho projection functionality
47+
- Fixed installed config path
48+
49+
50+
## [v1.3.3] - 2017-11-03
51+
52+
- removed broken and useless(?) include of a header file not available anymore in boost version 1.65.0 and above
53+
54+
55+
## [v1.3.2] - 2017-11-03
56+
57+
- set needed libwebsockets version to 2.1.1 or above as 2.10 is buggy
58+
- fixed broken CUDACC_VER of CUDA 9
59+
- fixed build for building without CUDA
60+
- added a define ISAAC_IDX_TYPE for changing the index type when using Alpaka
61+
- removed isaac_uint_dim as it was not used and made problems
62+
- renamed the internal variable threadIdx as the nvcc may confuse it with it's own
63+
- fixed some GCC 7.1 warnings
64+
- using boolean definitions from libjpeg headers
65+
- fixed ISAAC_HOST_DEVICE_INLINE macro
66+
- added manual control buttons to the examples
67+
68+
69+
## [v1.3.1] - 2017-07-06
70+
71+
- Fixed version macros
72+
73+
74+
## [v1.3.0] - 2017-04-06
75+
76+
- Fixed ISAAC CMake Config and installation
77+
- Fixed bug in server, which prevented more than one connection in some cases
78+
79+
80+
## [v1.2.0] - 2017-01-05
81+
82+
- Adding protocol string (major and minor)
83+
- Splitted server and library version (both major, minor and patch)
84+
- Splitted server and library CMake files
85+
- Some little bug fixing
86+
87+
88+
## [v1.1.0] - 2016-11-10
89+
90+
91+
## [v1.0.0] - 2016-05-26

INSTALL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ be built yourself nevertheless or the distribution versions are outdated.
9494
The ISAACConfig.cmake searches for these requirements. See
9595
`example/CMakeLists.txt` for an easy to adopt example.
9696

97-
* __Alpaka__ for the abstraction of the acceleration device. If only CUDA
97+
* __alpaka__ (version 0.6.0) for the abstraction of the acceleration device. If only CUDA
9898
is used, this library is __not needed__:
9999
* _From Source_:
100-
* `git clone https://github.com/ComputationalRadiationPhysics/alpaka.git`
100+
* `git clone https://github.com/alpaka-group/alpaka.git`
101101
* It is a header only library and doesn't need to be installed. However
102102
the root directory of the libary has to be added to the CMake variable
103103
`CMAKE_MODULE_PATH`, e.g. with

example/example.cpp

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -372,55 +372,55 @@ int main(
372372
#if ISAAC_ALPAKA == 1
373373

374374
// Alpaka specific initialization
375-
using AccDim = alpaka::dim::DimInt< 3 >;
376-
using SimDim = alpaka::dim::DimInt< 3 >;
377-
using DatDim = alpaka::dim::DimInt< 1 >;
375+
using AccDim = alpaka::DimInt< 3 >;
376+
using SimDim = alpaka::DimInt< 3 >;
377+
using DatDim = alpaka::DimInt< 1 >;
378378

379-
//using Acc = alpaka::acc::AccGpuCudaRt<AccDim, ISAAC_IDX_TYPE>;
380-
//using Stream = alpaka::queue::QueueCudaRtSync;
379+
//using Acc = alpaka::AccGpuCudaRt<AccDim, ISAAC_IDX_TYPE>;
380+
//using Stream = alpaka::QueueCudaRtSync;
381381

382-
using Acc = alpaka::acc::AccCpuOmp2Blocks<
382+
using Acc = alpaka::AccCpuOmp2Blocks<
383383
AccDim,
384384
ISAAC_IDX_TYPE
385385
>;
386-
using Stream = alpaka::queue::QueueCpuSync;
386+
using Stream = alpaka::QueueCpuSync;
387387

388-
//using Acc = alpaka::acc::AccCpuOmp2Threads<AccDim, ISAAC_IDX_TYPE>;
389-
//using Stream = alpaka::queue::QueueCpuSync;
388+
//using Acc = alpaka::AccCpuOmp2Threads<AccDim, ISAAC_IDX_TYPE>;
389+
//using Stream = alpaka::QueueCpuSync;
390390

391-
using DevAcc = alpaka::dev::Dev< Acc >;
392-
using DevHost = alpaka::dev::DevCpu;
393-
using PltfHost = alpaka::pltf::Pltf< DevHost >;
394-
using PltfAcc = alpaka::pltf::Pltf< DevAcc >;
391+
using DevAcc = alpaka::Dev< Acc >;
392+
using DevHost = alpaka::DevCpu;
393+
using PltfHost = alpaka::Pltf< DevHost >;
394+
using PltfAcc = alpaka::Pltf< DevAcc >;
395395

396396
DevAcc devAcc(
397-
alpaka::pltf::getDevByIdx< PltfAcc >(
398-
rank % alpaka::pltf::getDevCount< PltfAcc >( )
397+
alpaka::getDevByIdx< PltfAcc >(
398+
rank % alpaka::getDevCount< PltfAcc >( )
399399
)
400400
);
401-
DevHost devHost( alpaka::pltf::getDevByIdx< PltfHost >( 0u ) );
401+
DevHost devHost( alpaka::getDevByIdx< PltfHost >( 0u ) );
402402
Stream stream( devAcc );
403403

404-
const alpaka::vec::Vec< SimDim, ISAAC_IDX_TYPE > global_size(
404+
const alpaka::Vec< SimDim, ISAAC_IDX_TYPE > global_size(
405405
d[0] * VOLUME_X,
406406
d[1] * VOLUME_Y,
407407
d[2] * VOLUME_Z
408408
);
409-
const alpaka::vec::Vec< SimDim, ISAAC_IDX_TYPE > local_size(
409+
const alpaka::Vec< SimDim, ISAAC_IDX_TYPE > local_size(
410410
ISAAC_IDX_TYPE( VOLUME_X ),
411411
ISAAC_IDX_TYPE( VOLUME_Y ),
412412
ISAAC_IDX_TYPE( VOLUME_Z )
413413
);
414-
const alpaka::vec::Vec< DatDim, ISAAC_IDX_TYPE > data_size(
414+
const alpaka::Vec< DatDim, ISAAC_IDX_TYPE > data_size(
415415
ISAAC_IDX_TYPE( VOLUME_X ) * ISAAC_IDX_TYPE( VOLUME_Y )
416416
* ISAAC_IDX_TYPE( VOLUME_Z )
417417
);
418-
const alpaka::vec::Vec< SimDim, ISAAC_IDX_TYPE > position(
418+
const alpaka::Vec< SimDim, ISAAC_IDX_TYPE > position(
419419
p[0] * VOLUME_X,
420420
p[1] * VOLUME_Y,
421421
p[2] * VOLUME_Z
422422
);
423-
const alpaka::vec::Vec< alpaka::dim::DimInt< 1 >, ISAAC_IDX_TYPE > particle_count(
423+
const alpaka::Vec< alpaka::DimInt< 1 >, ISAAC_IDX_TYPE > particle_count(
424424
ISAAC_IDX_TYPE( PARTICLE_COUNT )
425425
);
426426

@@ -454,43 +454,43 @@ int main(
454454
// Init memory
455455
#if ISAAC_ALPAKA == 1
456456

457-
alpaka::mem::buf::Buf< DevHost, float3_t, DatDim, ISAAC_IDX_TYPE >
457+
alpaka::Buf< DevHost, float3_t, DatDim, ISAAC_IDX_TYPE >
458458
hostBuffer1(
459-
alpaka::mem::buf::alloc<
459+
alpaka::allocBuf<
460460
float3_t,
461461
ISAAC_IDX_TYPE
462462
>(
463463
devHost,
464464
data_size
465465
)
466466
);
467-
alpaka::mem::buf::Buf< DevAcc, float3_t, DatDim, ISAAC_IDX_TYPE >
467+
alpaka::Buf< DevAcc, float3_t, DatDim, ISAAC_IDX_TYPE >
468468
deviceBuffer1(
469-
alpaka::mem::buf::alloc<
469+
alpaka::allocBuf<
470470
float3_t,
471471
ISAAC_IDX_TYPE
472472
>(
473473
devAcc,
474474
data_size
475475
)
476476
);
477-
alpaka::mem::buf::Buf<
477+
alpaka::Buf<
478478
DevHost, float, DatDim,
479479
ISAAC_IDX_TYPE
480480
> hostBuffer2(
481-
alpaka::mem::buf::alloc<
481+
alpaka::allocBuf<
482482
float,
483483
ISAAC_IDX_TYPE
484484
>(
485485
devHost,
486486
data_size
487487
)
488488
);
489-
alpaka::mem::buf::Buf<
489+
alpaka::Buf<
490490
DevAcc, float, DatDim,
491491
ISAAC_IDX_TYPE
492492
> deviceBuffer2(
493-
alpaka::mem::buf::alloc<
493+
alpaka::allocBuf<
494494
float,
495495
ISAAC_IDX_TYPE
496496
>(
@@ -499,19 +499,19 @@ int main(
499499
)
500500
);
501501

502-
alpaka::mem::buf::Buf< DevHost, float3_t, DatDim, ISAAC_IDX_TYPE >
502+
alpaka::Buf< DevHost, float3_t, DatDim, ISAAC_IDX_TYPE >
503503
hostBuffer3(
504-
alpaka::mem::buf::alloc<
504+
alpaka::allocBuf<
505505
float3_t,
506506
ISAAC_IDX_TYPE
507507
>(
508508
devHost,
509509
particle_count
510510
)
511511
);
512-
alpaka::mem::buf::Buf< DevAcc, float3_t, DatDim, ISAAC_IDX_TYPE >
512+
alpaka::Buf< DevAcc, float3_t, DatDim, ISAAC_IDX_TYPE >
513513
deviceBuffer3(
514-
alpaka::mem::buf::alloc<
514+
alpaka::allocBuf<
515515
float3_t,
516516
ISAAC_IDX_TYPE
517517
>(
@@ -551,7 +551,7 @@ int main(
551551
devAcc,
552552
devHost,
553553
stream,
554-
reinterpret_cast<isaac_float3 *> ( alpaka::mem::view::getPtrNative( deviceBuffer1 ) )
554+
reinterpret_cast<isaac_float3 *> ( alpaka::getPtrNative( deviceBuffer1 ) )
555555
);
556556
TestSource2<
557557
DevAcc,
@@ -561,7 +561,7 @@ int main(
561561
devAcc,
562562
devHost,
563563
stream,
564-
reinterpret_cast<isaac_float *> ( alpaka::mem::view::getPtrNative( deviceBuffer2 ) )
564+
reinterpret_cast<isaac_float *> ( alpaka::getPtrNative( deviceBuffer2 ) )
565565
);
566566

567567
ParticleSource1<
@@ -572,7 +572,7 @@ int main(
572572
devAcc,
573573
devHost,
574574
stream,
575-
reinterpret_cast<isaac_float3 *> ( alpaka::mem::view::getPtrNative( deviceBuffer3 ) ),
575+
reinterpret_cast<isaac_float3 *> ( alpaka::getPtrNative( deviceBuffer3 ) ),
576576
PARTICLE_COUNT
577577
);
578578

@@ -685,7 +685,7 @@ int main(
685685
SimDim, //Dimension of the Simulation. In this case: 3D
686686
ParticleList, SourceList, //The boost::fusion list of Source Types
687687
#if ISAAC_ALPAKA == 1
688-
alpaka::vec::Vec<
688+
alpaka::Vec<
689689
SimDim,
690690
ISAAC_IDX_TYPE
691691
>, //Type of the 3D vectors used later

example/example_details.hpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,20 @@ void update_particles(
3737
for( ISAAC_IDX_TYPE i = 0; i < particle_count[0]; i++ )
3838
{
3939
#if ISAAC_ALPAKA == 1
40-
alpaka::mem::view::getPtrNative( hostBuffer3 )[i][0] =
40+
alpaka::getPtrNative( hostBuffer3 )[i][0] =
4141
float( ( int( i * 29.6f ) ) % 64 ) / 64.0f;
42-
alpaka::mem::view::getPtrNative( hostBuffer3 )[i][1] =
42+
alpaka::getPtrNative( hostBuffer3 )[i][1] =
4343
float( ( int( i * 23.1f ) ) % 64 ) / 64.0f;
44-
alpaka::mem::view::getPtrNative( hostBuffer3 )[i][2] = float(
44+
alpaka::getPtrNative( hostBuffer3 )[i][2] = float(
4545
( int( ( i * 7.9f + pos * ( i % 20 + 1 ) ) * 1000 ) ) % 64000
4646
) / 1000.0f / 64.0f;
4747
}
4848
/*
49-
const alpaka::vec::Vec <alpaka::dim::DimInt< 1 >, ISAAC_IDX_TYPE>
49+
const alpaka::Vec <alpaka::DimInt< 1 >, ISAAC_IDX_TYPE>
5050
data_size( ISAAC_IDX_TYPE( particle_count )
5151
);
5252
*/
53-
alpaka::mem::view::copy(
53+
alpaka::memcpy(
5454
stream,
5555
deviceBuffer3,
5656
hostBuffer3,
@@ -137,30 +137,30 @@ void update_data(
137137
size_t pos =
138138
x + y * local_size[0] + z * local_size[0] * local_size[1];
139139
#if ISAAC_ALPAKA == 1
140-
alpaka::mem::view::getPtrNative( hostBuffer1 )[pos][0] =
140+
alpaka::getPtrNative( hostBuffer1 )[pos][0] =
141141
intensity;
142-
alpaka::mem::view::getPtrNative( hostBuffer1 )[pos][1] =
142+
alpaka::getPtrNative( hostBuffer1 )[pos][1] =
143143
intensity;
144-
alpaka::mem::view::getPtrNative( hostBuffer1 )[pos][2] =
144+
alpaka::getPtrNative( hostBuffer1 )[pos][2] =
145145
intensity;
146-
alpaka::mem::view::getPtrNative( hostBuffer2 )[pos] =
146+
alpaka::getPtrNative( hostBuffer2 )[pos] =
147147
( 2.0f - l ) * ( 2.0f - l ) / 4.0f;
148148
}
149149
}
150150
}
151-
const alpaka::vec::Vec <alpaka::dim::DimInt< 1 >, ISAAC_IDX_TYPE>
151+
const alpaka::Vec <alpaka::DimInt< 1 >, ISAAC_IDX_TYPE>
152152
data_size(
153153
ISAAC_IDX_TYPE( local_size[0] )
154154
* ISAAC_IDX_TYPE( local_size[1] )
155155
* ISAAC_IDX_TYPE( local_size[2] )
156156
);
157-
alpaka::mem::view::copy(
157+
alpaka::memcpy(
158158
stream,
159159
deviceBuffer1,
160160
hostBuffer1,
161161
data_size
162162
);
163-
alpaka::mem::view::copy(
163+
alpaka::memcpy(
164164
stream,
165165
deviceBuffer2,
166166
hostBuffer2,
@@ -463,7 +463,7 @@ void read_vtk_to_memory(
463463
size_t pos = t_x + t_y * local_size[0]
464464
+ t_z * local_size[0] * local_size[1];
465465
#if ISAAC_ALPAKA == 1
466-
alpaka::mem::view::getPtrNative( hostBuffer2 )[pos] =
466+
alpaka::getPtrNative( hostBuffer2 )[pos] =
467467
( float ) value;
468468
#else
469469
hostBuffer2[pos] = ( float ) value;
@@ -484,13 +484,13 @@ void read_vtk_to_memory(
484484
}
485485

486486
#if ISAAC_ALPAKA == 1
487-
const alpaka::vec::Vec <alpaka::dim::DimInt< 1 >, ISAAC_IDX_TYPE>
487+
const alpaka::Vec <alpaka::DimInt< 1 >, ISAAC_IDX_TYPE>
488488
data_size(
489489
ISAAC_IDX_TYPE( local_size[0] )
490490
* ISAAC_IDX_TYPE( local_size[1] )
491491
* ISAAC_IDX_TYPE( local_size[2] )
492492
);
493-
alpaka::mem::view::copy(
493+
alpaka::memcpy(
494494
stream,
495495
deviceBuffer2,
496496
hostBuffer2,

0 commit comments

Comments
 (0)