//
// Created by Peter Rigole on 2019-04-17.
//

#include "NeuronProperties.cuh"

NeuronProperties::NeuronProperties() : long_time_lambda(0.5),
                                       medium_time_lambda(0.5) {}

// Copy constructor
NeuronProperties::NeuronProperties(const NeuronProperties &neuronProperties) :
        long_time_lambda(neuronProperties.long_time_lambda),
        medium_time_lambda(neuronProperties.medium_time_lambda) {}

// Destructor
NeuronProperties::~NeuronProperties() {}

__host__ __device__
float NeuronProperties::getLongTimeLambda() const { return long_time_lambda; }

__host__ __device__
float NeuronProperties::getMediumTimeLambda() const { return medium_time_lambda; }

	.file	"tmpxft_0035c7de_00000000-6_NeuronProperties.cudafe1.cpp"
	.text
#APP

#NO_APP
	.type	_ZL26__cudaUnregisterBinaryUtilv, @function
_ZL26__cudaUnregisterBinaryUtilv:
.LFB2021:
	.cfi_startproc
	endbr64
	movq	_ZL20__cudaFatCubinHandle(%rip), %rdi
	jmp	__cudaUnregisterFatBinary@PLT
	.cfi_endproc
.LFE2021:
	.size	_ZL26__cudaUnregisterBinaryUtilv, .-_ZL26__cudaUnregisterBinaryUtilv
	.align 2
	.globl	_ZN16NeuronPropertiesC2Ev
	.type	_ZN16NeuronPropertiesC2Ev, @function
_ZN16NeuronPropertiesC2Ev:
.LFB2009:
	.cfi_startproc
	endbr64
	movabsq	$4539628425446424576, %rax
	movq	%rax, (%rdi)
	ret
	.cfi_endproc
.LFE2009:
	.size	_ZN16NeuronPropertiesC2Ev, .-_ZN16NeuronPropertiesC2Ev
	.globl	_ZN16NeuronPropertiesC1Ev
	.set	_ZN16NeuronPropertiesC1Ev,_ZN16NeuronPropertiesC2Ev
	.align 2
	.globl	_ZN16NeuronPropertiesC2ERKS_
	.type	_ZN16NeuronPropertiesC2ERKS_, @function
_ZN16NeuronPropertiesC2ERKS_:
.LFB2012:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	movq	%rax, (%rdi)
	ret
	.cfi_endproc
.LFE2012:
	.size	_ZN16NeuronPropertiesC2ERKS_, .-_ZN16NeuronPropertiesC2ERKS_
	.globl	_ZN16NeuronPropertiesC1ERKS_
	.set	_ZN16NeuronPropertiesC1ERKS_,_ZN16NeuronPropertiesC2ERKS_
	.align 2
	.globl	_ZN16NeuronPropertiesD2Ev
	.type	_ZN16NeuronPropertiesD2Ev, @function
_ZN16NeuronPropertiesD2Ev:
.LFB2015:
	.cfi_startproc
	endbr64
	ret
	.cfi_endproc
.LFE2015:
	.size	_ZN16NeuronPropertiesD2Ev, .-_ZN16NeuronPropertiesD2Ev
	.globl	_ZN16NeuronPropertiesD1Ev
	.set	_ZN16NeuronPropertiesD1Ev,_ZN16NeuronPropertiesD2Ev
	.align 2
	.globl	_ZNK16NeuronProperties17getLongTimeLambdaEv
	.type	_ZNK16NeuronProperties17getLongTimeLambdaEv, @function
_ZNK16NeuronProperties17getLongTimeLambdaEv:
.LFB2017:
	.cfi_startproc
	endbr64
	movss	(%rdi), %xmm0
	ret
	.cfi_endproc
.LFE2017:
	.size	_ZNK16NeuronProperties17getLongTimeLambdaEv, .-_ZNK16NeuronProperties17getLongTimeLambdaEv
	.align 2
	.globl	_ZNK16NeuronProperties19getMediumTimeLambdaEv
	.type	_ZNK16NeuronProperties19getMediumTimeLambdaEv, @function
_ZNK16NeuronProperties19getMediumTimeLambdaEv:
.LFB2018:
	.cfi_startproc
	endbr64
	movss	4(%rdi), %xmm0
	ret
	.cfi_endproc
.LFE2018:
	.size	_ZNK16NeuronProperties19getMediumTimeLambdaEv, .-_ZNK16NeuronProperties19getMediumTimeLambdaEv
	.section	.text.startup,"ax",@progbits
	.type	_ZL24__sti____cudaRegisterAllv, @function
_ZL24__sti____cudaRegisterAllv:
.LFB2044:
	.cfi_startproc
	endbr64
	pushq	%rax
	.cfi_def_cfa_offset 16
	leaq	_ZL15__fatDeviceText(%rip), %rdi
	call	__cudaRegisterFatBinary@PLT
	movq	%rax, %rdi
	movq	%rax, _ZL20__cudaFatCubinHandle(%rip)
	call	__cudaRegisterFatBinaryEnd@PLT
	leaq	_ZL26__cudaUnregisterBinaryUtilv(%rip), %rdi
	popq	%rdx
	.cfi_def_cfa_offset 8
	jmp	atexit@PLT
	.cfi_endproc
.LFE2044:
	.size	_ZL24__sti____cudaRegisterAllv, .-_ZL24__sti____cudaRegisterAllv
	.section	.init_array,"aw"
	.align 8
	.quad	_ZL24__sti____cudaRegisterAllv
	.section	.nvFatBinSegment,"aw"
	.align 8
	.type	_ZL15__fatDeviceText, @object
	.size	_ZL15__fatDeviceText, 24
_ZL15__fatDeviceText:
	.long	1180844977
	.long	1
	.quad	fatbinData
	.quad	0
	.local	_ZL20__cudaFatCubinHandle
	.comm	_ZL20__cudaFatCubinHandle,8,8
	.ident	"GCC: (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

//
// Created by Peter Rigole on 2019-04-17.
//


#include <hip/hip_runtime.h>
#include "NeuronProperties.cuh"

NeuronProperties::NeuronProperties() : long_time_lambda(0.5),
                                       medium_time_lambda(0.5) {}

// Copy constructor
NeuronProperties::NeuronProperties(const NeuronProperties &neuronProperties) :
        long_time_lambda(neuronProperties.long_time_lambda),
        medium_time_lambda(neuronProperties.medium_time_lambda) {}

// Destructor
NeuronProperties::~NeuronProperties() {}

__host__ __device__
float NeuronProperties::getLongTimeLambda() const { return long_time_lambda; }

__host__ __device__
float NeuronProperties::getMediumTimeLambda() const { return medium_time_lambda; }

	.text
	.file	"NeuronProperties.hip"
	.globl	_ZN16NeuronPropertiesC2Ev       # -- Begin function _ZN16NeuronPropertiesC2Ev
	.p2align	1, 0x90
	.type	_ZN16NeuronPropertiesC2Ev,@function
_ZN16NeuronPropertiesC2Ev:              # @_ZN16NeuronPropertiesC2Ev
	.cfi_startproc
# %bb.0:
	movabsq	$4539628425446424576, %rax      # imm = 0x3F0000003F000000
	movq	%rax, (%rdi)
	retq
.Lfunc_end0:
	.size	_ZN16NeuronPropertiesC2Ev, .Lfunc_end0-_ZN16NeuronPropertiesC2Ev
	.cfi_endproc
                                        # -- End function
	.globl	_ZN16NeuronPropertiesC2ERKS_    # -- Begin function _ZN16NeuronPropertiesC2ERKS_
	.p2align	1, 0x90
	.type	_ZN16NeuronPropertiesC2ERKS_,@function
_ZN16NeuronPropertiesC2ERKS_:           # @_ZN16NeuronPropertiesC2ERKS_
	.cfi_startproc
# %bb.0:
	movss	(%rsi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, (%rdi)
	movss	4(%rsi), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, 4(%rdi)
	retq
.Lfunc_end1:
	.size	_ZN16NeuronPropertiesC2ERKS_, .Lfunc_end1-_ZN16NeuronPropertiesC2ERKS_
	.cfi_endproc
                                        # -- End function
	.globl	_ZN16NeuronPropertiesD2Ev       # -- Begin function _ZN16NeuronPropertiesD2Ev
	.p2align	1, 0x90
	.type	_ZN16NeuronPropertiesD2Ev,@function
_ZN16NeuronPropertiesD2Ev:              # @_ZN16NeuronPropertiesD2Ev
	.cfi_startproc
# %bb.0:
	retq
.Lfunc_end2:
	.size	_ZN16NeuronPropertiesD2Ev, .Lfunc_end2-_ZN16NeuronPropertiesD2Ev
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK16NeuronProperties17getLongTimeLambdaEv # -- Begin function _ZNK16NeuronProperties17getLongTimeLambdaEv
	.p2align	1, 0x90
	.type	_ZNK16NeuronProperties17getLongTimeLambdaEv,@function
_ZNK16NeuronProperties17getLongTimeLambdaEv: # @_ZNK16NeuronProperties17getLongTimeLambdaEv
	.cfi_startproc
# %bb.0:
	movss	(%rdi), %xmm0                   # xmm0 = mem[0],zero,zero,zero
	retq
.Lfunc_end3:
	.size	_ZNK16NeuronProperties17getLongTimeLambdaEv, .Lfunc_end3-_ZNK16NeuronProperties17getLongTimeLambdaEv
	.cfi_endproc
                                        # -- End function
	.globl	_ZNK16NeuronProperties19getMediumTimeLambdaEv # -- Begin function _ZNK16NeuronProperties19getMediumTimeLambdaEv
	.p2align	1, 0x90
	.type	_ZNK16NeuronProperties19getMediumTimeLambdaEv,@function
_ZNK16NeuronProperties19getMediumTimeLambdaEv: # @_ZNK16NeuronProperties19getMediumTimeLambdaEv
	.cfi_startproc
# %bb.0:
	movss	4(%rdi), %xmm0                  # xmm0 = mem[0],zero,zero,zero
	retq
.Lfunc_end4:
	.size	_ZNK16NeuronProperties19getMediumTimeLambdaEv, .Lfunc_end4-_ZNK16NeuronProperties19getMediumTimeLambdaEv
	.cfi_endproc
                                        # -- End function
	.type	__hip_cuid_,@object             # @__hip_cuid_
	.bss
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               # 0x0
	.size	__hip_cuid_, 1

	.globl	_ZN16NeuronPropertiesC1Ev
	.type	_ZN16NeuronPropertiesC1Ev,@function
.set _ZN16NeuronPropertiesC1Ev, _ZN16NeuronPropertiesC2Ev
	.globl	_ZN16NeuronPropertiesC1ERKS_
	.type	_ZN16NeuronPropertiesC1ERKS_,@function
.set _ZN16NeuronPropertiesC1ERKS_, _ZN16NeuronPropertiesC2ERKS_
	.globl	_ZN16NeuronPropertiesD1Ev
	.type	_ZN16NeuronPropertiesD1Ev,@function
.set _ZN16NeuronPropertiesD1Ev, _ZN16NeuronPropertiesD2Ev
	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_

	.text
	.p2alignl 7, 3214868480
	.fill 96, 4, 3214868480
	.type	__hip_cuid_,@object             ; @__hip_cuid_
	.section	.bss,"aw",@nobits
	.globl	__hip_cuid_
__hip_cuid_:
	.byte	0                               ; 0x0
	.size	__hip_cuid_, 1

	.ident	"AMD clang version 18.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.3.2 25012 e5bf7e55c91490b07c49d8960fa7983d864936c4)"
	.section	".note.GNU-stack","",@progbits
	.addrsig
	.addrsig_sym __hip_cuid_
	.amdgcn_target "amdgcn-amd-amdhsa--gfx1100"
	.amdgpu_metadata
---
amdhsa.kernels:  []
amdhsa.target:   amdgcn-amd-amdhsa--gfx1100
amdhsa.version:
  - 1
  - 2
...

	.end_amdgpu_metadata
